org.eclipse.xsd.impl
Class XSDRedefineImpl

java.lang.Object
  extended byEObjectImpl
      extended byorg.eclipse.xsd.impl.XSDConcreteComponentImpl
          extended byorg.eclipse.xsd.impl.XSDSchemaContentImpl
              extended byorg.eclipse.xsd.impl.XSDSchemaDirectiveImpl
                  extended byorg.eclipse.xsd.impl.XSDSchemaCompositorImpl
                      extended byorg.eclipse.xsd.impl.XSDRedefineImpl
All Implemented Interfaces:
XSDConcreteComponent, XSDRedefine, XSDSchemaCompositor, XSDSchemaContent, XSDSchemaDirective

public class XSDRedefineImpl
extends XSDSchemaCompositorImpl
implements XSDRedefine

An implementation of the model object 'Redefine'.

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  EList annotations
          The cached value of the 'Annotations' reference list
protected  EList contents
          The cached value of the 'Contents' containment reference list
 
Fields inherited from class org.eclipse.xsd.impl.XSDSchemaCompositorImpl
incorporatedSchema
 
Fields inherited from class org.eclipse.xsd.impl.XSDSchemaDirectiveImpl
resolved, resolvedSchema, SCHEMA_LOCATION_EDEFAULT, schemaLocation
 
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 XSDRedefineImpl()
           
 
Method Summary
 XSDConcreteComponent cloneConcreteComponent(boolean deep, boolean shareDOM)
          Creates a clone of the component.
 Element createElement()
           
static XSDRedefine createRedefine(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)
           
 EList getAnnotations()
           
 EList getContents()
           
protected  void handleReconciliation(List newContents, List remainingContents)
           
protected  void handleResolvedSchema(XSDSchema xsdSchema)
           
protected  void handleUnreconciledElement(Element child, List newContents, List remainingContents)
           
protected  void patch()
           
 void validate()
          Validates whether this component conforms to the constraints defined in the XML Schema standard.
 
Methods inherited from class org.eclipse.xsd.impl.XSDSchemaCompositorImpl
getIncorporatedSchema, reset, setIncorporatedSchema
 
Methods inherited from class org.eclipse.xsd.impl.XSDSchemaDirectiveImpl
changeAttribute, getResolvedSchema, getSchemaLocation, locateSchema, reconcileAttributes, resolve, resolveSchemaLocation, setResolvedSchema, setSchemaLocation, 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, 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, isUpdatingDOM, moveContent, niceCreateNamespaceAttribute, niceInsertBefore, niceRemoveChild, niceSetAttribute, niceSetAttributeURIValue, orphanBy, orphanContent, orphanDiagnostic, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xsd.XSDSchemaCompositor
getIncorporatedSchema, setIncorporatedSchema
 
Methods inherited from interface org.eclipse.xsd.XSDSchemaDirective
getResolvedSchema, getSchemaLocation, setResolvedSchema, setSchemaLocation
 
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

annotations

protected EList annotations
The cached value of the 'Annotations' reference list.

See Also:
getAnnotations()

contents

protected EList contents
The cached value of the 'Contents' containment reference list.

See Also:
getContents()
Constructor Detail

XSDRedefineImpl

protected XSDRedefineImpl()

Method Detail

createRedefine

public static XSDRedefine createRedefine(Node node)

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class XSDSchemaCompositorImpl

getAnnotations

public EList getAnnotations()

Specified by:
getAnnotations in interface XSDRedefine
Returns:
the value of the 'Annotations' reference list.
See Also:
XSDPackage.getXSDRedefine_Annotations()

getContents

public EList getContents()

Specified by:
getContents in interface XSDRedefine
Returns:
the value of the 'Contents' containment reference list.
See Also:
XSDPackage.getXSDRedefine_Contents()

eInverseRemove

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

Overrides:
eInverseRemove in class XSDSchemaCompositorImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class XSDSchemaCompositorImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class XSDSchemaCompositorImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class XSDSchemaCompositorImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class XSDSchemaCompositorImpl

createElement

public Element createElement()
Overrides:
createElement in class XSDConcreteComponentImpl

patch

protected void patch()
Overrides:
patch in class XSDConcreteComponentImpl

handleResolvedSchema

protected void handleResolvedSchema(XSDSchema xsdSchema)
Overrides:
handleResolvedSchema in class XSDSchemaDirectiveImpl

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

handleUnreconciledElement

protected void handleUnreconciledElement(Element child,
                                         List newContents,
                                         List remainingContents)
Overrides:
handleUnreconciledElement in class XSDConcreteComponentImpl

handleReconciliation

protected void handleReconciliation(List newContents,
                                    List remainingContents)
Overrides:
handleReconciliation 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.