com.ibm.etools.xsd.impl
Class XSDFacetImpl

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.XSDFacetImpl
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, XSDFacet
Direct Known Subclasses:
XSDConstrainingFacetImpl, XSDFundamentalFacetImpl

public class XSDFacetImpl
extends XSDComponentImpl
implements XSDFacet, XSDComponent


Field Summary
protected  XSDAnnotation annotation
          The cached value of the 'Annotation' reference.
static java.lang.String copyright
           
protected  java.lang.String lexicalValue
          The cached value of the 'Lexical Value' attribute.
 
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
 
Constructor Summary
protected XSDFacetImpl()
           
 
Method Summary
protected  void changeAttribute(com.ibm.etools.emf.ref.RefAttribute refAttribute)
           
 com.ibm.etools.emf.ecore.EClass eClassXSDFacet()
          
 XSDPackage ePackageXSD()
          
 XSDAnnotation getAnnotation()
          
 java.lang.Object getEffectiveValue()
          Returns the value of the 'Effective Value' attribute.
 java.lang.String getFacetName()
          Returns the value of the 'Facet Name' attribute.
 java.lang.String getLexicalValue()
          
 XSDSimpleTypeDefinition getSimpleTypeDefinition()
          
 com.ibm.etools.emf.ref.RefObject initInstance()
          
 boolean isSetAnnotation()
          
 boolean isSetLexicalValue()
          
protected  void reconcileAttributes(Element changedElement)
           
 com.ibm.etools.emf.notify.Notification refBasicSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature, java.lang.Object newValue)
          
 com.ibm.etools.emf.notify.Notification refBasicUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 java.lang.Object refBasicValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 boolean refIsSet(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 void refSetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature, java.lang.Object newValue)
          
 void refUnsetValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 java.lang.Object refValue(com.ibm.etools.emf.ref.RefStructuralFeature feature)
          
 void setAnnotation(XSDAnnotation value)
          
 void setLexicalValue(java.lang.String value)
          
 java.lang.String toString()
          
 void unsetAnnotation()
          
 void unsetLexicalValue()
          
 void validate()
          Validates whether this component conforms to the constraints defined in the XML Schema standard.
protected  void validateValue()
           
 
Methods inherited from class com.ibm.etools.xsd.impl.XSDComponentImpl
eClassXSDComponent
 
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, getURIReferenceLabel, getURIReferencePath, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, handleReconciliation, handleUnreconciledElement, internalNotify, isSetElement, isSetOwner, isSetRootOwner, isSetSchema, isUpdatingDOM, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanContent, orphanDiagnostic, patch, 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
 
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.XSDComponent
eClassXSDComponent
 
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
 
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
 

Field Detail

copyright

public static final java.lang.String copyright

lexicalValue

protected java.lang.String lexicalValue
The cached value of the 'Lexical Value' attribute.
See Also:
getLexicalValue()

annotation

protected XSDAnnotation annotation
The cached value of the 'Annotation' reference.
See Also:
getAnnotation()
Constructor Detail

XSDFacetImpl

protected XSDFacetImpl()
Method Detail

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.

eClassXSDFacet

public com.ibm.etools.emf.ecore.EClass eClassXSDFacet()
Specified by:
eClassXSDFacet in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
the meta class.
See Also:
XSDPackage.getXSDFacet(), XSDConcreteComponent.ePackageXSD()

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

getLexicalValue

public java.lang.String getLexicalValue()
Specified by:
getLexicalValue in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
the value of the 'Lexical Value' attribute.
See Also:
XSDFacet.isSetLexicalValue(), XSDFacet.unsetLexicalValue(), XSDFacet.setLexicalValue(String), XSDPackage.getXSDFacet_LexicalValue()

setLexicalValue

public void setLexicalValue(java.lang.String value)
Specified by:
setLexicalValue in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Parameters:
value - the new value of the 'Lexical Value' attribute.
See Also:
XSDFacet.isSetLexicalValue(), XSDFacet.unsetLexicalValue(), XSDFacet.getLexicalValue()

unsetLexicalValue

public void unsetLexicalValue()
Specified by:
unsetLexicalValue in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
See Also:
XSDFacet.isSetLexicalValue(), XSDFacet.getLexicalValue(), XSDFacet.setLexicalValue(String)

isSetLexicalValue

public boolean isSetLexicalValue()
Specified by:
isSetLexicalValue in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
whether the value of the 'Lexical Value' attribute is set.
See Also:
XSDFacet.unsetLexicalValue(), XSDFacet.getLexicalValue(), XSDFacet.setLexicalValue(String)

validate

public void validate()
Description copied from interface: XSDConcreteComponent
Validates whether this component conforms to the constraints defined in the XML Schema standard. Diagnostics are produced to report any problems.
Specified by:
validate in interface XSDConcreteComponent
Overrides:
validate in class XSDConcreteComponentImpl
Following copied from interface: com.ibm.etools.xsd.XSDConcreteComponent
See Also:
XSDConcreteComponent.getDiagnostics(), XSDConcreteComponent.clearDiagnostics()

validateValue

protected void validateValue()

reconcileAttributes

protected void reconcileAttributes(Element changedElement)
Overrides:
reconcileAttributes in class XSDConcreteComponentImpl

changeAttribute

protected void changeAttribute(com.ibm.etools.emf.ref.RefAttribute refAttribute)
Overrides:
changeAttribute in class XSDConcreteComponentImpl

getFacetName

public java.lang.String getFacetName()
Description copied from interface: XSDFacet
Returns the value of the 'Facet Name' attribute.

This concrete attribute represents the name of this type of facet.

Specified by:
getFacetName in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
the value of the 'Facet Name' attribute.
See Also:
XSDPackage.getXSDFacet_FacetName()

getEffectiveValue

public java.lang.Object getEffectiveValue()
Description copied from interface: XSDFacet
Returns the value of the 'Effective Value' attribute.

This represents a generic version of the value infoset property of this facet.

Specified by:
getEffectiveValue in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
the value of the 'Effective Value' attribute.
See Also:
XSDPackage.getXSDFacet_EffectiveValue()

getAnnotation

public XSDAnnotation getAnnotation()
Specified by:
getAnnotation in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
the value of the 'Annotation' reference.
See Also:
XSDFacet.isSetAnnotation(), XSDFacet.unsetAnnotation(), XSDFacet.setAnnotation(XSDAnnotation), XSDPackage.getXSDFacet_Annotation()

setAnnotation

public void setAnnotation(XSDAnnotation value)
Specified by:
setAnnotation in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Parameters:
value - the new value of the 'Annotation' reference.
See Also:
XSDFacet.isSetAnnotation(), XSDFacet.unsetAnnotation(), XSDFacet.getAnnotation()

unsetAnnotation

public void unsetAnnotation()
Specified by:
unsetAnnotation in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
See Also:
XSDFacet.isSetAnnotation(), XSDFacet.getAnnotation(), XSDFacet.setAnnotation(XSDAnnotation)

isSetAnnotation

public boolean isSetAnnotation()
Specified by:
isSetAnnotation in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
whether the value of the 'Annotation' reference is set.
See Also:
XSDFacet.unsetAnnotation(), XSDFacet.getAnnotation(), XSDFacet.setAnnotation(XSDAnnotation)

getSimpleTypeDefinition

public XSDSimpleTypeDefinition getSimpleTypeDefinition()
Specified by:
getSimpleTypeDefinition in interface XSDFacet
Following copied from interface: com.ibm.etools.xsd.XSDFacet
Returns:
the value of the 'Simple Type Definition' reference.
See Also:
XSDPackage.getXSDFacet_SimpleTypeDefinition()

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