com.ibm.etools.xsd.impl
Class XSDNamedComponentImpl
java.lang.Object
|
+--com.ibm.etools.emf.notify.impl.NotifierImpl
|
+--com.ibm.etools.emf.ref.impl.RefBaseObjectImpl
|
+--com.ibm.etools.emf.ref.impl.RefObjectImpl
|
+--com.ibm.etools.xsd.impl.XSDConcreteComponentImpl
|
+--com.ibm.etools.xsd.impl.XSDComponentImpl
|
+--com.ibm.etools.xsd.impl.XSDNamedComponentImpl
- All Implemented Interfaces:
- com.ibm.etools.emf.notify.InternalNotifier, com.ibm.etools.emf.ref.InternalProxy, com.ibm.etools.emf.ref.InternalResolved, com.ibm.etools.emf.ref.Internals, com.ibm.etools.emf.notify.Notifier, com.ibm.etools.emf.ref.RefBaseObject, com.ibm.etools.emf.ref.RefObject, com.ibm.etools.emf.resource.ResourceSetReference, XSDComponent, XSDConcreteComponent, XSDNamedComponent
- Direct Known Subclasses:
- XSDFeatureImpl, XSDIdentityConstraintDefinitionImpl, XSDNotationDeclarationImpl, XSDRedefinableComponentImpl
- public class XSDNamedComponentImpl
- extends XSDComponentImpl
- implements XSDNamedComponent, XSDComponent
| Fields inherited from class com.ibm.etools.xsd.impl.XSDConcreteComponentImpl |
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ERROR, FATAL, INFORMATION, isReconciling, owner, rootOwner, schema, UNANALYZED, updatingDOM, WARNING |
| Fields inherited from class com.ibm.etools.emf.ref.impl.RefObjectImpl |
refDelegateOwner |
| Fields inherited from class com.ibm.etools.emf.ref.impl.RefBaseObjectImpl |
helper |
| Fields inherited from class com.ibm.etools.emf.notify.impl.NotifierImpl |
debug, isOn, isOnAll |
| Fields inherited from interface com.ibm.etools.emf.notify.Notifier |
ADD, ADD_MANY, CREATE, MOVE, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, SET, TOUCH, UNSET |
| Methods inherited from class com.ibm.etools.xsd.impl.XSDConcreteComponentImpl |
adoptBy, adoptContent, adoptDiagnostic, analyze, changeReference, checkAttributes, checkBuiltInTypeConstraint, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponent, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, createDiagnostic, createDiagnostic, createElement, createElement, createRequiredAttributeDiagnostic, createUnresolvedAttributeDeclaration, createUnresolvedAttributeGroupDefinition, createUnresolvedComplexTypeDefinition, createUnresolvedElementDeclaration, createUnresolvedIdentityConstraintDefinition, createUnresolvedModelGroupDefinition, createUnresolvedNotationDeclaration, createUnresolvedSimpleTypeDefinition, createUnresolvedTypeDefinition, eClassXSDConcreteComponent, elementAttributesChanged, elementChanged, elementContentsChanged, forceEngulf, forceEngulf, forceNiceInsertBefore, forceNiceRemoveChild, forceReplace, getAdoptionParentNode, getBestConcreteComponent, getComponentsWithApplicationInformation, getComponentsWithInformation, getComponentsWithUserInformation, getContainer, getContentNodes, getDiagnostics, getElement, getOwner, getOwnerGen, getRootContainer, getRootOwner, getSchema, getURIReferencePath, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, handleReconciliation, handleUnreconciledElement, internalNotify, isSetElement, isSetOwner, isSetRootOwner, isSetSchema, isUpdatingDOM, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanContent, orphanDiagnostic, reconcile, reconcileContents, reportConstraintViolation, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, setElementGen, setListContentAndOrder, setOwner, setRootOwner, setSchema, traverseToRootForAnalysis, traverseToRootForPatching, unsetElement, unsetElementGen, unsetOwner, unsetRootOwner, unsetSchema, updateElement, updateElement, validate |
| Methods inherited from class com.ibm.etools.emf.ref.impl.RefObjectImpl |
getAdapter, initInstanceDelegates, newCollection, newCollection, newCollection, notify, notify, refAddValue, refAddValueAt, refAddValueBefore, refBasicContains, refBasicRemoveContent, refBasicRemoveValue, refBasicValues, refContainer, refContains, refCurrentValues, refDelegateOwner, refDelete, refGetDefaultValues, refIsDelegate, refModifyValue, refModifyValueAt, refRemoveContent, refRemoveValue, refRemoveValueAt, refResource, refSetDelegateOwner, refSetValueForContainMVReference, refSetValueForContainSVReference, refSetValueForEnumAttribute, refSetValueForMVReference, refSetValueForRefObjectSF, refSetValueForSimpleSF, refSetValueForSVReference, refUnsetValueForContainReference, refUnsetValueForMVReference, refUnsetValueForRefObjectSF, refUnsetValueForSimpleSF, refUnsetValueForSVReference |
| Methods inherited from class com.ibm.etools.emf.ref.impl.RefBaseObjectImpl |
getImplementationHelper, getRegisteredAdapterFactory, getResourceSet, initDelegates, metaObject, refAttributes, refBasicContainsExtent, refBasicSetContainer, refContainerExtent, refContainerSF, refContainments, refContainments, refContains, refContainsExtent, refContainsNested, refCreateProxy, refDefiningPackage, refExtent, refFindUnloadedObjectsContains, refGetProxyURI, refHref, refID, refImmediatePackage, refIsContainer, refIsDeleted, refIsProxy, refItself, refMetaObject, refMofId, refName, refOutermostPackage, refPackage, refReferences, refSetContainer, refSetContainer, refSetExtent, refSetID, refSetID, refSetIDContains, refSetMetaObject, refSetProxyURI, refSetUUID, refSetUUID, refSetUUID, resolve, resolve, resolved, resolveDelete |
| Methods inherited from class com.ibm.etools.emf.notify.impl.NotifierImpl |
addAdapter, ensureAdapterSpace, getAdapters, getExistingAdapter, isDelivery, isDeliveryAll, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ibm.etools.xsd.XSDConcreteComponent |
clearDiagnostics, cloneConcreteComponent, contains, eClassXSDConcreteComponent, elementAttributesChanged, elementChanged, elementContentsChanged, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getOwner, getRootContainer, getRootOwner, getSchema, getURIReferencePath, isSetElement, isSetOwner, isSetRootOwner, isSetSchema, resolveAttributeDeclaration, resolveAttributeDeclaration, resolveAttributeDeclarationURI, resolveAttributeGroupDefinition, resolveAttributeGroupDefinition, resolveAttributeGroupDefinitionURI, resolveComplexTypeDefinition, resolveComplexTypeDefinition, resolveComplexTypeDefinitionURI, resolveElementDeclaration, resolveElementDeclaration, resolveElementDeclarationURI, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinition, resolveIdentityConstraintDefinitionURI, resolveModelGroupDefinition, resolveModelGroupDefinition, resolveModelGroupDefinitionURI, resolveNotationDeclaration, resolveNotationDeclaration, resolveNotationDeclarationURI, resolveSimpleTypeDefinition, resolveSimpleTypeDefinition, resolveSimpleTypeDefinitionURI, resolveTypeDefinition, resolveTypeDefinition, resolveTypeDefinitionURI, setElement, setOwner, setRootOwner, setSchema, unsetElement, unsetOwner, unsetRootOwner, unsetSchema, updateElement, updateElement, validate |
| Methods inherited from interface com.ibm.etools.emf.ref.RefObject |
refAddValue, refAddValueAt, refAddValueBefore, refCurrentValues, refDelegateOwner, refGetDefaultValues, refModifyValue, refModifyValueAt, refRemoveValue, refRemoveValueAt, refSetDelegateOwner |
| Methods inherited from interface com.ibm.etools.emf.ref.RefBaseObject |
metaObject, refAttributes, refContainer, refContainerExtent, refContainerSF, refContainments, refContainments, refContains, refContains, refContainsExtent, refContainsNested, refDelete, refExtent, refID, refImmediatePackage, refIsContainer, refItself, refMetaObject, refMofId, refName, refOutermostPackage, refPackage, refReferences, refRemoveContent, refResource, refSetExtent, refSetID, refSetID, refSetIDContains, refSetMetaObject, refSetUUID, refSetUUID, refSetUUID |
| Methods inherited from interface com.ibm.etools.emf.notify.Notifier |
addAdapter, getAdapter, getAdapters, getExistingAdapter, isDelivery, isDeliveryAll, notify, notify, removeAdapter, removeAllAdapters, setDelivery, setDeliveryAll |
| Methods inherited from interface com.ibm.etools.emf.resource.ResourceSetReference |
getResourceSet |
| Methods inherited from interface com.ibm.etools.emf.ref.Internals |
refBasicContainsExtent, refBasicSetContainer, refSetContainer, refSetContainer |
copyright
public static final java.lang.String copyright
name
protected java.lang.String name
- The cached value of the '
Name' attribute.
- See Also:
getName()
targetNamespace
protected java.lang.String targetNamespace
- The cached value of the '
Target Namespace' attribute.
- See Also:
getTargetNamespace()
XSDNamedComponentImpl
protected XSDNamedComponentImpl()
ePackageXSD
public XSDPackage ePackageXSD()
-
- Specified by:
ePackageXSD in interface XSDConcreteComponent- Overrides:
ePackageXSD in class XSDComponentImpl
- Following copied from interface:
com.ibm.etools.xsd.XSDConcreteComponent
- Returns:
- the meta package of
XSDConcreteComponent.
eClassXSDNamedComponent
public com.ibm.etools.emf.ecore.EClass eClassXSDNamedComponent()
-
- Specified by:
eClassXSDNamedComponent in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the meta class.
- See Also:
XSDPackage.getXSDNamedComponent(),
XSDConcreteComponent.ePackageXSD()
sortNamedComponents
public static java.util.List sortNamedComponents(java.util.Collection xsdNamedComponents)
addToSortedList
public static void addToSortedList(java.util.List xsdNamedComponents,
XSDNamedComponent xsdNamedComponent)
mergeToSortedList
public static void mergeToSortedList(java.util.List xsdNamedComponentsTarget,
java.util.List xsdNamedComponentsSource)
initInstance
public com.ibm.etools.emf.ref.RefObject initInstance()
-
- Specified by:
initInstance in interface com.ibm.etools.emf.ref.RefObject- Overrides:
initInstance in class XSDComponentImpl
getName
public java.lang.String getName()
-
- Specified by:
getName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the value of the 'Name' attribute.
- See Also:
XSDNamedComponent.isSetName(),
XSDNamedComponent.unsetName(),
XSDNamedComponent.setName(String),
XSDPackage.getXSDNamedComponent_Name()
setName
public void setName(java.lang.String value)
-
- Specified by:
setName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Parameters:
value - the new value of the 'Name' attribute.- See Also:
XSDNamedComponent.isSetName(),
XSDNamedComponent.unsetName(),
XSDNamedComponent.getName()
unsetName
public void unsetName()
-
- Specified by:
unsetName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- See Also:
XSDNamedComponent.isSetName(),
XSDNamedComponent.getName(),
XSDNamedComponent.setName(String)
isSetName
public boolean isSetName()
-
- Specified by:
isSetName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- whether the value of the 'Name' attribute is set.
- See Also:
XSDNamedComponent.unsetName(),
XSDNamedComponent.getName(),
XSDNamedComponent.setName(String)
getTargetNamespace
public java.lang.String getTargetNamespace()
-
- Specified by:
getTargetNamespace in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the value of the 'Target Namespace' attribute.
- See Also:
XSDNamedComponent.isSetTargetNamespace(),
XSDNamedComponent.unsetTargetNamespace(),
XSDNamedComponent.setTargetNamespace(String),
XSDPackage.getXSDNamedComponent_TargetNamespace()
setTargetNamespace
public void setTargetNamespace(java.lang.String value)
-
- Specified by:
setTargetNamespace in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Parameters:
value - the new value of the 'Target Namespace' attribute.- See Also:
XSDNamedComponent.isSetTargetNamespace(),
XSDNamedComponent.unsetTargetNamespace(),
XSDNamedComponent.getTargetNamespace()
unsetTargetNamespace
public void unsetTargetNamespace()
-
- Specified by:
unsetTargetNamespace in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- See Also:
XSDNamedComponent.isSetTargetNamespace(),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.setTargetNamespace(String)
isSetTargetNamespace
public boolean isSetTargetNamespace()
-
- Specified by:
isSetTargetNamespace in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- whether the value of the 'Target Namespace' attribute is set.
- See Also:
XSDNamedComponent.unsetTargetNamespace(),
XSDNamedComponent.getTargetNamespace(),
XSDNamedComponent.setTargetNamespace(String)
getURIReferenceLabel
protected java.lang.String getURIReferenceLabel()
- Overrides:
getURIReferenceLabel in class XSDConcreteComponentImpl
getAliasName
public java.lang.String getAliasName()
- Description copied from interface:
XSDNamedComponent
- Returns the value of the 'Alias Name' attribute.
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".
- Specified by:
getAliasName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the value of the 'Alias Name' attribute.
- See Also:
XSDPackage.getXSDNamedComponent_AliasName()
getURI
public java.lang.String getURI()
- Description copied from interface:
XSDNamedComponent
- Returns the value of the 'URI' attribute.
This is equivalent to the string
<target namespace>#<name>
where a null target namespace is taken to mean an empty string.
- Specified by:
getURI in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the value of the 'URI' attribute.
- See Also:
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()
getAliasURI
public java.lang.String getAliasURI()
-
- Specified by:
getAliasURI in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the value of the 'Alias URI' attribute.
- See Also:
XSDPackage.getXSDNamedComponent_AliasURI()
getQName
public java.lang.String getQName(XSDConcreteComponent relativeToComponent)
- Description copied from interface:
XSDNamedComponent
- Returns this named component's
'
QName'
in the context of the given component.
- Specified by:
getQName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Parameters:
relativeToComponent - the context at which to express the QName.- Returns:
- the '
QName'. - See Also:
XSDNamedComponent.getQName()
getQName
public java.lang.String getQName()
- Description copied from interface:
XSDNamedComponent
- Returns the value of the 'QName' attribute.
This concrete attribute is equivalent to
xsdNamedComponent.getQName(xsdNamedComponent}
- Specified by:
getQName in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Returns:
- the value of the 'QName' attribute.
- See Also:
XSDNamedComponent.getQName(com.ibm.etools.xsd.XSDConcreteComponent),
XSDPackage.getXSDNamedComponent_QName()
refValue
public java.lang.Object refValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Specified by:
refValue in interface com.ibm.etools.emf.ref.RefObject- Overrides:
refValue in class XSDComponentImpl
refBasicValue
public java.lang.Object refBasicValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Overrides:
refBasicValue in class XSDComponentImpl
refIsSet
public boolean refIsSet(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Specified by:
refIsSet in interface com.ibm.etools.emf.ref.RefObject- Overrides:
refIsSet in class XSDComponentImpl
refSetValue
public void refSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature,
java.lang.Object newValue)
-
- Specified by:
refSetValue in interface com.ibm.etools.emf.ref.RefObject- Overrides:
refSetValue in class XSDComponentImpl
refBasicSetValue
public com.ibm.etools.emf.notify.Notification refBasicSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature,
java.lang.Object newValue)
-
- Overrides:
refBasicSetValue in class XSDComponentImpl
refUnsetValue
public void refUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Specified by:
refUnsetValue in interface com.ibm.etools.emf.ref.RefObject- Overrides:
refUnsetValue in class XSDComponentImpl
refBasicUnsetValue
public com.ibm.etools.emf.notify.Notification refBasicUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Overrides:
refBasicUnsetValue in class XSDComponentImpl
toString
public java.lang.String toString()
-
- Overrides:
toString in class XSDComponentImpl
patch
protected void patch()
- Overrides:
patch in class XSDConcreteComponentImpl
patchTargetNamespaceAttribute
protected void patchTargetNamespaceAttribute()
reconcileAttributes
protected void reconcileAttributes(Element changedElement)
- Overrides:
reconcileAttributes in class XSDConcreteComponentImpl
reconcileNameAttribute
protected void reconcileNameAttribute()
changeAttribute
protected void changeAttribute(com.ibm.etools.emf.ref.RefAttribute refAttribute)
- Overrides:
changeAttribute in class XSDConcreteComponentImpl
isNamedComponentReference
public boolean isNamedComponentReference()
getResolvedNamedComponent
public XSDNamedComponent getResolvedNamedComponent()
hasSameNameAndTargetNamespace
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent)
- Description copied from interface:
XSDNamedComponent
- Returns whether this named component and the given named component are named the same.
This is equivalent to
xsdNamedComponent.hasNameAndTargetNamespace
(xsdOtherNamedComponent.getName(),
xsdOtherNamedComponent.getTargetNamespace())
- Specified by:
hasSameNameAndTargetNamespace in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Parameters:
xsdNamedComponent - another named component.- Returns:
- whether this named component and the given named component are named the same.
- See Also:
XSDNamedComponent.hasNameAndTargetNamespace(java.lang.String, java.lang.String),
XSDNamedComponent.getName(),
XSDNamedComponent.getTargetNamespace()
hasNameAndTargetNamespace
public boolean hasNameAndTargetNamespace(java.lang.String name,
java.lang.String targetNamespace)
- Description copied from interface:
XSDNamedComponent
- Returns whether this named component has the given name and target namespace.
This is equivalent to
(targetNamespace == null ?
getTargetNamespace() == null :
targetNamespace.equals(getTargetNamespace())) &&
(name == null ?
getName() == null :
name.equals(getName()))
- Specified by:
hasNameAndTargetNamespace in interface XSDNamedComponent
- Following copied from interface:
com.ibm.etools.xsd.XSDNamedComponent
- Parameters:
name - the name.target - namespace the target namespace.- Returns:
- whether this named component has the given name and target namespace.
- See Also:
XSDNamedComponent.hasSameNameAndTargetNamespace(com.ibm.etools.xsd.XSDNamedComponent),
XSDNamedComponent.getName(),
XSDNamedComponent.getTargetNamespace()