org.eclipse.xsd.impl
Class XSDXPathDefinitionImpl

java.lang.Object
  extended byEObjectImpl
      extended byorg.eclipse.xsd.impl.XSDConcreteComponentImpl
          extended byorg.eclipse.xsd.impl.XSDComponentImpl
              extended byorg.eclipse.xsd.impl.XSDXPathDefinitionImpl
All Implemented Interfaces:
XSDComponent, XSDConcreteComponent, XSDXPathDefinition

public class XSDXPathDefinitionImpl
extends XSDComponentImpl
implements XSDXPathDefinition

An implementation of the model object 'XPath Definition'.

The following features are implemented:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
XSDConcreteComponentImpl.XSDContentsEList
 
Field Summary
protected  XSDAnnotation annotation
          The cached value of the 'Annotation' containment reference
protected  String value
          The cached value of the 'Value' attribute
protected static String VALUE_EDEFAULT
          The default value of the 'Value' attribute
protected  XSDXPathVariety variety
          The cached value of the 'Variety' attribute
protected static XSDXPathVariety VARIETY_EDEFAULT
          The default value of the 'Variety' 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
 
Constructor Summary
protected XSDXPathDefinitionImpl()
           
 
Method Summary
 NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation, NotificationChain msgs)
           
protected  void changeAttribute(EAttribute eAttribute)
           
 XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
          Creates a clone of the component.
 Element createElement()
           
static XSDXPathDefinition createXPathDefinition(Node node)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 XSDAnnotation getAnnotation()
           
 String getValue()
           
 XSDXPathVariety getVariety()
           
protected  void reconcileAttributes(Element changedElement)
           
 void setAnnotation(XSDAnnotation newAnnotation)
           
 void setValue(String newValue)
           
 void setVariety(XSDXPathVariety newVariety)
           
 String toString()
           
 void validate()
          Validates whether this component conforms to the constraints defined in the XML Schema standard.
 
Methods inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
adoptBy, adoptContent, adoptDiagnostic, analyze, changeReference, checkAttributes, checkAttributeTypeConstraint, checkAttributeTypeConstraint, checkBuiltInTypeConstraint, checkComplexContent, checkComplexContent, checkElementComplexContent, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, createDiagnostic, createDiagnostic, createDiagnostic, createDiagnostic, createElement, createRequiredAttributeDiagnostic, createUnresolvedAttributeDeclaration, createUnresolvedAttributeGroupDefinition, createUnresolvedComplexTypeDefinition, createUnresolvedElementDeclaration, createUnresolvedIdentityConstraintDefinition, createUnresolvedModelGroupDefinition, createUnresolvedNotationDeclaration, createUnresolvedSimpleTypeDefinition, createUnresolvedTypeDefinition, elementAttributesChanged, elementChanged, elementContentsChanged, eNotificationRequired, eNotify, eObjectForURIFragmentSegment, eURIFragmentSegment, forceEngulf, forceEngulf, forceNiceInsertBefore, forceNiceRemoveChild, forceReplace, getAdoptionParentNode, getBestConcreteComponent, getComponentsWithApplicationInformation, getComponentsWithInformation, getComponentsWithUserInformation, getContainer, getContentNodes, getDiagnostics, getDiagnosticTarget, getElement, getRootContainer, getSchema, getURIReferenceLabel, getXSDContents, getXSDFactory, getXSDPackage, handleAnnotationReconciliation, handleElementForAdopt, handleReconciliation, handleUnreconciledElement, isUpdatingDOM, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanContent, orphanDiagnostic, patch, printDFA, reconcile, reconcileContents, reportConstraintViolation, reset, 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, traverseToRootForAnalysis, traverseToRootForPatching, updateElement, updateElement, updatePrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xsd.XSDConcreteComponent
clearDiagnostics, contains, elementAttributesChanged, elementChanged, elementContentsChanged, getComponentsWithApplicationInformation, getComponentsWithUserInformation, getContainer, getDiagnostics, getElement, getRootContainer, getSchema, 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, updateElement, updateElement
 

Field Detail

VARIETY_EDEFAULT

protected static final XSDXPathVariety VARIETY_EDEFAULT
The default value of the 'Variety' attribute.

See Also:
getVariety()

variety

protected XSDXPathVariety variety
The cached value of the 'Variety' attribute.

See Also:
getVariety()

VALUE_EDEFAULT

protected static final String VALUE_EDEFAULT
The default value of the 'Value' attribute.

See Also:
getValue()

value

protected String value
The cached value of the 'Value' attribute.

See Also:
getValue()

annotation

protected XSDAnnotation annotation
The cached value of the 'Annotation' containment reference.

See Also:
getAnnotation()
Constructor Detail

XSDXPathDefinitionImpl

protected XSDXPathDefinitionImpl()

Method Detail

createXPathDefinition

public static XSDXPathDefinition createXPathDefinition(Node node)

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class XSDComponentImpl

getVariety

public XSDXPathVariety getVariety()

Specified by:
getVariety in interface XSDXPathDefinition
Returns:
the value of the 'Variety' attribute.
See Also:
XSDXPathVariety, XSDXPathDefinition.setVariety(XSDXPathVariety), XSDPackage.getXSDXPathDefinition_Variety()

setVariety

public void setVariety(XSDXPathVariety newVariety)

Specified by:
setVariety in interface XSDXPathDefinition
Parameters:
newVariety - the new value of the 'Variety' attribute.
See Also:
XSDXPathVariety, XSDXPathDefinition.getVariety()

getValue

public String getValue()

Specified by:
getValue in interface XSDXPathDefinition
Returns:
the value of the 'Value' attribute.
See Also:
XSDXPathDefinition.setValue(String), XSDPackage.getXSDXPathDefinition_Value()

setValue

public void setValue(String newValue)

Specified by:
setValue in interface XSDXPathDefinition
Parameters:
newValue - the new value of the 'Value' attribute.
See Also:
XSDXPathDefinition.getValue()

getAnnotation

public XSDAnnotation getAnnotation()

Specified by:
getAnnotation in interface XSDXPathDefinition
Returns:
the value of the 'Annotation' containment reference.
See Also:
XSDXPathDefinition.setAnnotation(XSDAnnotation), XSDPackage.getXSDXPathDefinition_Annotation()

setAnnotation

public void setAnnotation(XSDAnnotation newAnnotation)

Specified by:
setAnnotation in interface XSDXPathDefinition
Parameters:
newAnnotation - the new value of the 'Annotation' containment reference.
See Also:
XSDXPathDefinition.getAnnotation()

basicSetAnnotation

public NotificationChain basicSetAnnotation(XSDAnnotation newAnnotation,
                                            NotificationChain msgs)


eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class XSDComponentImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class XSDComponentImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class XSDComponentImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class XSDComponentImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class XSDComponentImpl

toString

public String toString()

Overrides:
toString in class XSDConcreteComponentImpl

createElement

public Element createElement()
Overrides:
createElement in class XSDConcreteComponentImpl

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. The effect of calling this for a component not directly or indirectly contained by a schema is undefined, and is likely to result in null pointer exceptions.

Specified by:
validate in interface XSDConcreteComponent
Overrides:
validate in class XSDConcreteComponentImpl

reconcileAttributes

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

changeAttribute

protected void changeAttribute(EAttribute eAttribute)
Overrides:
changeAttribute in class XSDConcreteComponentImpl

cloneConcreteComponent

public XSDConcreteComponent cloneConcreteComponent(boolean deep,
                                                   boolean shareDOM)
Description copied from interface: XSDConcreteComponent
Creates a clone of the component. The clone may be deep and may share the DOM of this component.

Specified by:
cloneConcreteComponent in interface XSDConcreteComponent
Overrides:
cloneConcreteComponent in class XSDConcreteComponentImpl

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.