org.eclipse.xsd.impl
Class XSDSchemaDirectiveImpl

java.lang.Object
  extended byEObjectImpl
      extended byorg.eclipse.xsd.impl.XSDConcreteComponentImpl
          extended byorg.eclipse.xsd.impl.XSDSchemaContentImpl
              extended byorg.eclipse.xsd.impl.XSDSchemaDirectiveImpl
All Implemented Interfaces:
XSDConcreteComponent, XSDSchemaContent, XSDSchemaDirective
Direct Known Subclasses:
XSDImportImpl, XSDSchemaCompositorImpl

public abstract class XSDSchemaDirectiveImpl
extends XSDSchemaContentImpl
implements XSDSchemaDirective

An implementation of the model object 'Schema Directive'.

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  boolean resolved
           
protected  XSDSchema resolvedSchema
          The cached value of the 'Resolved Schema' reference
protected static String SCHEMA_LOCATION_EDEFAULT
          The default value of the 'Schema Location' attribute
protected  String schemaLocation
          The cached value of the 'Schema Location' 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 XSDSchemaDirectiveImpl()
           
 
Method Summary
protected  void changeAttribute(EAttribute eAttribute)
           
 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)
           
 XSDSchema getResolvedSchema()
           
 String getSchemaLocation()
           
protected  void handleResolvedSchema(XSDSchema xsdSchema)
           
protected  XSDSchema locateSchema(XSDSchema xsdSchema, String namespace, String rawSchemaLocation, String resolvedSchemaLocation)
           
protected  void reconcileAttributes(Element changedElement)
           
 void reset()
           
protected  void resolve(String namespace, String schemaLocation)
           
protected  String resolveSchemaLocation(XSDSchema xsdSchema, String namespace, String schemaLocation)
           
 void setResolvedSchema(XSDSchema newResolvedSchema)
           
 void setSchemaLocation(String newSchemaLocation)
           
 String toString()
           
 
Methods inherited from class org.eclipse.xsd.impl.XSDSchemaContentImpl
createSchemaContent
 
Methods inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl
adoptBy, adoptContent, adoptDiagnostic, analyze, changeReference, checkAttributes, checkAttributeTypeConstraint, checkAttributeTypeConstraint, checkBuiltInTypeConstraint, checkComplexContent, checkComplexContent, checkElementComplexContent, checkSimpleTypeConstraint, clearDiagnostics, cloneConcreteComponent, cloneConcreteComponents, considerAllContainsForBestConcreteComponent, contains, createDiagnostic, createDiagnostic, createDiagnostic, createDiagnostic, createElement, 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, 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, validate
 
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, cloneConcreteComponent, 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, validate
 

Field Detail

SCHEMA_LOCATION_EDEFAULT

protected static final String SCHEMA_LOCATION_EDEFAULT
The default value of the 'Schema Location' attribute.

See Also:
getSchemaLocation()

schemaLocation

protected String schemaLocation
The cached value of the 'Schema Location' attribute.

See Also:
getSchemaLocation()

resolvedSchema

protected XSDSchema resolvedSchema
The cached value of the 'Resolved Schema' reference.

See Also:
getResolvedSchema()

resolved

protected boolean resolved
Constructor Detail

XSDSchemaDirectiveImpl

protected XSDSchemaDirectiveImpl()

Method Detail

reset

public void reset()
Overrides:
reset in class XSDConcreteComponentImpl

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class XSDSchemaContentImpl

getSchemaLocation

public String getSchemaLocation()

Specified by:
getSchemaLocation in interface XSDSchemaDirective
Returns:
the value of the 'Schema Location' attribute.
See Also:
XSDSchema.getSchemaLocation(), XSDSchemaDirective.getResolvedSchema(), XSDSchemaDirective.setSchemaLocation(String), XSDPackage.getXSDSchemaDirective_SchemaLocation()

setSchemaLocation

public void setSchemaLocation(String newSchemaLocation)

Specified by:
setSchemaLocation in interface XSDSchemaDirective
Parameters:
newSchemaLocation - the new value of the 'Schema Location' attribute.
See Also:
XSDSchemaDirective.getSchemaLocation()

getResolvedSchema

public XSDSchema getResolvedSchema()

Specified by:
getResolvedSchema in interface XSDSchemaDirective
Returns:
the value of the 'Resolved Schema' reference.
See Also:
XSDSchemaDirective.getSchemaLocation(), XSDSchemaDirective.setResolvedSchema(XSDSchema), XSDPackage.getXSDSchemaDirective_ResolvedSchema()

setResolvedSchema

public void setResolvedSchema(XSDSchema newResolvedSchema)

Specified by:
setResolvedSchema in interface XSDSchemaDirective
Parameters:
newResolvedSchema - the new value of the 'Resolved Schema' reference.
See Also:
XSDSchemaDirective.getResolvedSchema()

eInverseRemove

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

Overrides:
eInverseRemove in class XSDSchemaContentImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class XSDSchemaContentImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class XSDSchemaContentImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class XSDSchemaContentImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class XSDSchemaContentImpl

toString

public String toString()

Overrides:
toString 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

resolve

protected void resolve(String namespace,
                       String schemaLocation)

locateSchema

protected XSDSchema locateSchema(XSDSchema xsdSchema,
                                 String namespace,
                                 String rawSchemaLocation,
                                 String resolvedSchemaLocation)

resolveSchemaLocation

protected String resolveSchemaLocation(XSDSchema xsdSchema,
                                       String namespace,
                                       String schemaLocation)

handleResolvedSchema

protected void handleResolvedSchema(XSDSchema xsdSchema)

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