|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.BasicNotifierImpl org.eclipse.emf.ecore.impl.BasicEObjectImpl org.eclipse.emf.ecore.impl.EObjectImpl org.eclipse.xsd.impl.XSDConcreteComponentImpl org.eclipse.xsd.impl.XSDComponentImpl org.eclipse.xsd.impl.XSDNamedComponentImpl
public abstract class XSDNamedComponentImpl
An implementation of the model object 'Named Component'.
The following features are implemented:
Nested Class Summary | |
---|---|
static class |
XSDNamedComponentImpl.Comparator
|
static class |
XSDNamedComponentImpl.StringPairComparator
|
static class |
XSDNamedComponentImpl.XSDNamedComponentList<E extends java.lang.Object & XSDNamedComponent>
|
Nested classes/interfaces inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
---|
XSDConcreteComponentImpl.XSDContentsEList |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter> |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
InternalEObject.EStore |
Field Summary | |
---|---|
protected static java.lang.String |
ALIAS_NAME_EDEFAULT
The default value of the ' Alias Name ' attribute |
protected static java.lang.String |
ALIAS_URI_EDEFAULT
The default value of the ' Alias URI ' attribute |
protected java.lang.String |
name
The cached value of the ' Name ' attribute |
protected static java.lang.String |
NAME_EDEFAULT
The default value of the ' Name ' attribute |
protected static java.lang.String |
QNAME_EDEFAULT
The default value of the ' QName ' attribute |
protected static java.lang.String |
TARGET_NAMESPACE_EDEFAULT
The default value of the ' Target Namespace ' attribute |
protected java.lang.String |
targetNamespace
The cached value of the ' Target Namespace ' attribute |
protected static java.lang.String |
URI_EDEFAULT
The default value of the ' URI ' attribute |
Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
---|
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, forceResolve, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
protected |
XSDNamedComponentImpl()
|
Method Summary | ||
---|---|---|
static
|
addToSortedList(java.util.List<T> xsdNamedComponents,
T xsdNamedComponent)
|
|
protected void |
adoptBy(XSDSchema xsdSchema)
|
|
protected void |
changeAttribute(EAttribute eAttribute)
|
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
|
boolean |
eIsSet(int featureID)
|
|
void |
eSet(int featureID,
java.lang.Object newValue)
|
|
protected EClass |
eStaticClass()
|
|
void |
eUnset(int featureID)
|
|
static XSDNamedComponent |
findInSortedList(java.util.List<? extends XSDNamedComponent> xsdNamedComponents,
java.lang.String targetNamespace,
java.lang.String localName)
|
|
java.lang.String |
getAliasName()
Returns the value of the 'Alias Name' attribute |
|
java.lang.String |
getAliasURI()
|
|
java.lang.String |
getName()
|
|
java.lang.String |
getQName()
Returns the value of the 'QName' attribute |
|
java.lang.String |
getQName(XSDConcreteComponent relativeToComponent)
Returns this named component's ' QName '
in the context of the given component |
|
XSDNamedComponent |
getResolvedNamedComponent()
|
|
java.lang.String |
getTargetNamespace()
|
|
java.lang.String |
getURI()
Returns the value of the 'URI' attribute |
|
protected java.lang.String |
getURIReferenceLabel()
|
|
boolean |
hasNameAndTargetNamespace(java.lang.String name,
java.lang.String targetNamespace)
Returns whether this named component has the given name and target namespace |
|
boolean |
hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
Returns whether this named component and the given named component are named the same |
|
boolean |
hasURI(java.lang.String uri)
Returns whether this named component has the given URI |
|
boolean |
isNamedComponentReference()
|
|
static
|
mergeToSortedList(java.util.List<T> xsdNamedComponentsTarget,
java.util.List<T> xsdNamedComponentsSource)
|
|
protected void |
patch()
|
|
protected void |
patchTargetNamespaceAttribute()
|
|
protected void |
reconcileAttributes(org.w3c.dom.Element changedElement)
|
|
protected void |
reconcileNameAttribute()
|
|
void |
setName(java.lang.String newName)
|
|
void |
setTargetNamespace(java.lang.String newTargetNamespace)
|
|
static java.util.List<XSDNamedComponent> |
sortNamedComponents(java.util.Collection<XSDNamedComponent> xsdNamedComponents)
|
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
---|
protected static final java.lang.String NAME_EDEFAULT
Name
' attribute.
getName()
protected java.lang.String name
Name
' attribute.
getName()
protected static final java.lang.String TARGET_NAMESPACE_EDEFAULT
Target Namespace
' attribute.
getTargetNamespace()
protected java.lang.String targetNamespace
Target Namespace
' attribute.
getTargetNamespace()
protected static final java.lang.String ALIAS_NAME_EDEFAULT
Alias Name
' attribute.
getAliasName()
protected static final java.lang.String URI_EDEFAULT
URI
' attribute.
getURI()
protected static final java.lang.String ALIAS_URI_EDEFAULT
Alias URI
' attribute.
getAliasURI()
protected static final java.lang.String QNAME_EDEFAULT
QName
' attribute.
getQName()
Constructor Detail |
---|
protected XSDNamedComponentImpl()
Method Detail |
---|
public static java.util.List<XSDNamedComponent> sortNamedComponents(java.util.Collection<XSDNamedComponent> xsdNamedComponents)
public static <T extends XSDNamedComponent> void addToSortedList(java.util.List<T> xsdNamedComponents, T xsdNamedComponent)
public static XSDNamedComponent findInSortedList(java.util.List<? extends XSDNamedComponent> xsdNamedComponents, java.lang.String targetNamespace, java.lang.String localName)
public static <T extends XSDNamedComponent> void mergeToSortedList(java.util.List<T> xsdNamedComponentsTarget, java.util.List<T> xsdNamedComponentsSource)
protected EClass eStaticClass()
eStaticClass
in class XSDComponentImpl
public java.lang.String getName()
getName
in interface XSDNamedComponent
XSDNamedComponent.setName(String)
,
XSDPackage.getXSDNamedComponent_Name()
public void setName(java.lang.String newName)
setName
in interface XSDNamedComponent
newName
- the new value of the 'Name' attribute.XSDNamedComponent.getName()
public java.lang.String getTargetNamespace()
getTargetNamespace
in interface XSDNamedComponent
XSDNamedComponent.setTargetNamespace(String)
,
XSDPackage.getXSDNamedComponent_TargetNamespace()
public void setTargetNamespace(java.lang.String newTargetNamespace)
setTargetNamespace
in interface XSDNamedComponent
newTargetNamespace
- the new value of the 'Target Namespace' attribute.XSDNamedComponent.getTargetNamespace()
protected java.lang.String getURIReferenceLabel()
getURIReferenceLabel
in class XSDConcreteComponentImpl
public java.lang.String getAliasName()
XSDNamedComponent
This attempts to construct a relatively meaningful name for an anonymous component
by using the name of the containing component and an indication of the relation to that component,
For example,
"E_._type
" would be the alias name of the anonymous type definition of the element "E
" and
"LT_._item
" would be the alias name of the anonymous item type definition of the list type defintion "LT
".
getAliasName
in interface XSDNamedComponent
XSDPackage.getXSDNamedComponent_AliasName()
public java.lang.String getURI()
XSDNamedComponent
This is equivalent to the string
<where atarget namespace
>#<name
>
null
target namespace is taken to mean an empty string.
getURI
in interface XSDNamedComponent
XSDConcreteComponent.resolveAttributeDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveAttributeGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveComplexTypeDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveElementDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveIdentityConstraintDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveModelGroupDefinitionURI(java.lang.String)
,
XSDConcreteComponent.resolveNotationDeclarationURI(java.lang.String)
,
XSDConcreteComponent.resolveSimpleTypeDefinitionURI(java.lang.String)
,
XSDPackage.getXSDNamedComponent_URI()
public java.lang.String getAliasURI()
getAliasURI
in interface XSDNamedComponent
XSDPackage.getXSDNamedComponent_AliasURI()
public java.lang.String getQName(XSDConcreteComponent relativeToComponent)
XSDNamedComponent
QName
'
in the context of the given component.
getQName
in interface XSDNamedComponent
relativeToComponent
- the context at which to express the QName.
QName
'.XSDNamedComponent.getQName()
public java.lang.String getQName()
XSDNamedComponent
This concrete attribute is equivalent to
xsdNamedComponent.getQName
(xsdNamedComponent)
getQName
in interface XSDNamedComponent
XSDNamedComponent.getQName(org.eclipse.xsd.XSDConcreteComponent)
,
XSDPackage.getXSDNamedComponent_QName()
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class XSDConcreteComponentImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class XSDConcreteComponentImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class XSDConcreteComponentImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class XSDConcreteComponentImpl
public java.lang.String toString()
toString
in class XSDConcreteComponentImpl
protected void patch()
patch
in class XSDConcreteComponentImpl
protected void patchTargetNamespaceAttribute()
protected void adoptBy(XSDSchema xsdSchema)
adoptBy
in class XSDConcreteComponentImpl
protected void reconcileAttributes(org.w3c.dom.Element changedElement)
reconcileAttributes
in class XSDConcreteComponentImpl
protected void reconcileNameAttribute()
protected void changeAttribute(EAttribute eAttribute)
changeAttribute
in class XSDConcreteComponentImpl
public boolean isNamedComponentReference()
public XSDNamedComponent getResolvedNamedComponent()
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
XSDNamedComponent
This is equivalent to
xsdNamedComponent.hasNameAndTargetNamespace
(xsdOtherNamedComponent.getName
(), xsdOtherNamedComponent.getTargetNamespace
())
hasSameNameAndTargetNamespace
in interface XSDNamedComponent
xsdNamedComponent
- another named component.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String)
,
XSDNamedComponent.getName()
,
XSDNamedComponent.getTargetNamespace()
public boolean hasNameAndTargetNamespace(java.lang.String name, java.lang.String targetNamespace)
XSDNamedComponent
This is equivalent to
(targetNamespace == null ? getTargetNamespace() == null : targetNamespace.equals(getTargetNamespace())) && (name == null ? getName() == null : name.equals(getName()))
hasNameAndTargetNamespace
in interface XSDNamedComponent
name
- the name.targetNamespace
- namespace the target namespace.
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent)
,
XSDNamedComponent.hasURI(java.lang.String)
,
XSDNamedComponent.getName()
,
XSDNamedComponent.getTargetNamespace()
public boolean hasURI(java.lang.String uri)
XSDNamedComponent
This is equivalent to
String theTargetNamespace = getTargetNamespace(); if (theTargetNamespace == null) { theTargetNamespace = ""; } String theName = getName(); if (theName == null) { theName = ""; } return qName.startsWith(theTargetNamespace) && qName.endsWith(theName) && qName.length() == theName.length() + theTargetNamespace.length() + 1;
hasURI
in interface XSDNamedComponent
uri
- the URI.
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String)
,
XSDNamedComponent.hasSameNameAndTargetNamespace(org.eclipse.xsd.XSDNamedComponent)
,
XSDNamedComponent.getURI()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |