com.ibm.etools.xsd.impl
Class XSDTypeDefinitionImpl
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
|
+--com.ibm.etools.xsd.impl.XSDRedefinableComponentImpl
|
+--com.ibm.etools.xsd.impl.XSDTypeDefinitionImpl
- 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, XSDRedefinableComponent, XSDRedefineContent, XSDSchemaContent, XSDTypeDefinition
- Direct Known Subclasses:
- XSDComplexTypeDefinitionImpl, XSDSimpleTypeDefinitionImpl
- public class XSDTypeDefinitionImpl
- extends XSDRedefinableComponentImpl
- implements XSDTypeDefinition, XSDRedefinableComponent, XSDRedefineContent
| 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.XSDNamedComponentImpl |
addToSortedList, changeAttribute, eClassXSDNamedComponent, getAliasName, getAliasURI, getName, getQName, getQName, getResolvedNamedComponent, getTargetNamespace, getURI, getURIReferenceLabel, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, isNamedComponentReference, isSetName, isSetTargetNamespace, mergeToSortedList, patchTargetNamespaceAttribute, reconcileAttributes, reconcileNameAttribute, setName, setTargetNamespace, sortNamedComponents, unsetName, unsetTargetNamespace |
| Methods inherited from class com.ibm.etools.xsd.impl.XSDConcreteComponentImpl |
adoptBy, adoptContent, adoptDiagnostic, 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.XSDNamedComponent |
eClassXSDNamedComponent, getAliasName, getAliasURI, getName, getQName, getQName, getTargetNamespace, getURI, hasNameAndTargetNamespace, hasSameNameAndTargetNamespace, isSetName, isSetTargetNamespace, setName, setTargetNamespace, unsetName, unsetTargetNamespace |
| 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
annotation
protected XSDAnnotation annotation
- The cached value of the '
Annotation' reference.
- See Also:
getAnnotation()
derivationAnnotation
protected XSDAnnotation derivationAnnotation
- The cached value of the '
Derivation Annotation' reference.
- See Also:
getDerivationAnnotation()
annotations
protected com.ibm.etools.emf.ref.EList annotations
- The cached value of the '
Annotations' reference list.
- See Also:
getAnnotations()
analysisState
protected int analysisState
XSDTypeDefinitionImpl
protected XSDTypeDefinitionImpl()
ePackageXSD
public XSDPackage ePackageXSD()
-
- Specified by:
ePackageXSD in interface XSDConcreteComponent- Overrides:
ePackageXSD in class XSDRedefinableComponentImpl
- Following copied from interface:
com.ibm.etools.xsd.XSDConcreteComponent
- Returns:
- the meta package of
XSDConcreteComponent.
eClassXSDTypeDefinition
public com.ibm.etools.emf.ecore.EClass eClassXSDTypeDefinition()
-
- Specified by:
eClassXSDTypeDefinition in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the meta class.
- See Also:
XSDPackage.getXSDTypeDefinition(),
XSDConcreteComponent.ePackageXSD()
createTypeDefinition
public static XSDTypeDefinition createTypeDefinition(Node node)
initInstance
public com.ibm.etools.emf.ref.RefObject initInstance()
-
- Specified by:
initInstance in interface com.ibm.etools.emf.ref.RefObject- Overrides:
initInstance in class XSDRedefinableComponentImpl
getAnnotation
public XSDAnnotation getAnnotation()
-
- Specified by:
getAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Annotation' reference.
- See Also:
XSDTypeDefinition.isSetAnnotation(),
XSDTypeDefinition.unsetAnnotation(),
XSDTypeDefinition.setAnnotation(XSDAnnotation),
XSDPackage.getXSDTypeDefinition_Annotation()
setAnnotation
public void setAnnotation(XSDAnnotation value)
-
- Specified by:
setAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Parameters:
value - the new value of the 'Annotation' reference.- See Also:
XSDTypeDefinition.isSetAnnotation(),
XSDTypeDefinition.unsetAnnotation(),
XSDTypeDefinition.getAnnotation()
unsetAnnotation
public void unsetAnnotation()
-
- Specified by:
unsetAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- See Also:
XSDTypeDefinition.isSetAnnotation(),
XSDTypeDefinition.getAnnotation(),
XSDTypeDefinition.setAnnotation(XSDAnnotation)
isSetAnnotation
public boolean isSetAnnotation()
-
- Specified by:
isSetAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- whether the value of the 'Annotation' reference is set.
- See Also:
XSDTypeDefinition.unsetAnnotation(),
XSDTypeDefinition.getAnnotation(),
XSDTypeDefinition.setAnnotation(XSDAnnotation)
getDerivationAnnotation
public XSDAnnotation getDerivationAnnotation()
-
- Specified by:
getDerivationAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Derivation Annotation' reference.
- See Also:
XSDTypeDefinition.isSetDerivationAnnotation(),
XSDTypeDefinition.unsetDerivationAnnotation(),
XSDTypeDefinition.setDerivationAnnotation(XSDAnnotation),
XSDPackage.getXSDTypeDefinition_DerivationAnnotation()
setDerivationAnnotation
public void setDerivationAnnotation(XSDAnnotation value)
-
- Specified by:
setDerivationAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Parameters:
value - the new value of the 'Derivation Annotation' reference.- See Also:
XSDTypeDefinition.isSetDerivationAnnotation(),
XSDTypeDefinition.unsetDerivationAnnotation(),
XSDTypeDefinition.getDerivationAnnotation()
unsetDerivationAnnotation
public void unsetDerivationAnnotation()
-
- Specified by:
unsetDerivationAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- See Also:
XSDTypeDefinition.isSetDerivationAnnotation(),
XSDTypeDefinition.getDerivationAnnotation(),
XSDTypeDefinition.setDerivationAnnotation(XSDAnnotation)
isSetDerivationAnnotation
public boolean isSetDerivationAnnotation()
-
- Specified by:
isSetDerivationAnnotation in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- whether the value of the 'Derivation Annotation' reference is set.
- See Also:
XSDTypeDefinition.unsetDerivationAnnotation(),
XSDTypeDefinition.getDerivationAnnotation(),
XSDTypeDefinition.setDerivationAnnotation(XSDAnnotation)
getAnnotations
public com.ibm.etools.emf.ref.EList getAnnotations()
-
- Specified by:
getAnnotations in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Annotations' reference list.
- See Also:
XSDPackage.getXSDTypeDefinition_Annotations()
patch
protected void patch()
- Overrides:
patch in class XSDNamedComponentImpl
analyze
protected boolean analyze()
- Overrides:
analyze in class XSDConcreteComponentImpl
handleAnalysis
protected void handleAnalysis()
getLowestCommonAncestor
public static XSDTypeDefinition getLowestCommonAncestor(java.util.Collection xsdTypeDefinitions)
getBaseType
public XSDTypeDefinition getBaseType()
- Description copied from interface:
XSDTypeDefinition
- Returns the value of the 'Base Type' reference.
This represents the same result as either
the simple 'Base Type Definition' reference or
the complex 'Base Type Definition' reference.
- Specified by:
getBaseType in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Base Type' reference.
- See Also:
XSDPackage.getXSDTypeDefinition_BaseType()
getRootType
public XSDTypeDefinition getRootType()
- Description copied from interface:
XSDTypeDefinition
- Returns the value of the 'Root Type' reference.
This walks the base types
until it hits that one that has the ur-type definition as it's base type.
- Specified by:
getRootType in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Root Type' reference.
- See Also:
XSDPackage.getXSDTypeDefinition_RootType()
getSimpleType
public XSDSimpleTypeDefinition getSimpleType()
- Description copied from interface:
XSDTypeDefinition
- Returns the value of the 'Simple Type' reference.
This represents either
the 'Simple Type Definition' itself or
the complex 'Content Type' reference,
if it is simple.
- Specified by:
getSimpleType in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Simple Type' reference.
- See Also:
XSDPackage.getXSDTypeDefinition_SimpleType()
getComplexType
public XSDParticle getComplexType()
-
- Specified by:
getComplexType in interface XSDTypeDefinition
- Following copied from interface:
com.ibm.etools.xsd.XSDTypeDefinition
- Returns:
- the value of the 'Complex Type' reference.
- See Also:
XSDPackage.getXSDTypeDefinition_ComplexType()
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 XSDRedefinableComponentImpl
refBasicValue
public java.lang.Object refBasicValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Overrides:
refBasicValue in class XSDRedefinableComponentImpl
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 XSDRedefinableComponentImpl
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 XSDRedefinableComponentImpl
refBasicSetValue
public com.ibm.etools.emf.notify.Notification refBasicSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature,
java.lang.Object newValue)
-
- Overrides:
refBasicSetValue in class XSDRedefinableComponentImpl
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 XSDRedefinableComponentImpl
refBasicUnsetValue
public com.ibm.etools.emf.notify.Notification refBasicUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
-
- Overrides:
refBasicUnsetValue in class XSDRedefinableComponentImpl
toString
public java.lang.String toString()
-
- Overrides:
toString in class XSDRedefinableComponentImpl
isCircular
public boolean isCircular()
- Description copied from interface:
XSDRedefinableComponent
- Returns whether the object is '
Circular'.
- Specified by:
isCircular in interface XSDRedefinableComponent- Overrides:
isCircular in class XSDRedefinableComponentImpl
- Following copied from interface:
com.ibm.etools.xsd.XSDRedefinableComponent
- Returns:
- whether the object is 'Circular'.
- See Also:
XSDRedefinableComponent.getCircular()