org.eclipse.xsd.impl
Class XSDLengthFacetImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.xsd.impl.XSDConcreteComponentImpl
org.eclipse.xsd.impl.XSDComponentImpl
org.eclipse.xsd.impl.XSDFacetImpl
org.eclipse.xsd.impl.XSDConstrainingFacetImpl
org.eclipse.xsd.impl.XSDFixedFacetImpl
org.eclipse.xsd.impl.XSDLengthFacetImpl
- All Implemented Interfaces:
- EObject, InternalEObject, Notifier, XSDComponent, XSDConcreteComponent, XSDConstrainingFacet, XSDFacet, XSDFixedFacet, XSDLengthFacet
- public class XSDLengthFacetImpl
- extends XSDFixedFacetImpl
- implements XSDLengthFacet
An implementation of the model object 'Length Facet'.
The following features are implemented:
|
Field Summary |
protected int |
value
The cached value of the 'Value' attribute |
protected static int |
VALUE_EDEFAULT
The default value of the 'Value' attribute |
| Fields inherited from class org.eclipse.xsd.impl.XSDConcreteComponentImpl |
ANALYZED, ANALYZING, CIRCULAR, diagnostics, element, ELEMENT_EDEFAULT, ERROR, FATAL, INFORMATION, isReconciling, UNANALYZED, updatingDOM, WARNING, xsdContents |
| 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, 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 |
| Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore |
| 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 |
VALUE_EDEFAULT
protected static final int VALUE_EDEFAULT
- The default value of the '
Value' attribute.
- See Also:
getValue(),
Constant Field Values
value
protected int value
- The cached value of the '
Value' attribute.
- See Also:
getValue()
XSDLengthFacetImpl
protected XSDLengthFacetImpl()
createLengthFacet
public static XSDLengthFacet createLengthFacet(Node node)
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass in class XSDFixedFacetImpl
getValue
public int getValue()
-
- Specified by:
getValue in interface XSDLengthFacet
- Returns:
- the value of the 'Value' attribute.
- See Also:
XSDLengthFacet.setValue(int),
XSDPackage.getXSDLengthFacet_Value()
setValue
public void setValue(int newValue)
-
- Specified by:
setValue in interface XSDLengthFacet
- Parameters:
newValue - the new value of the 'Value' attribute.- See Also:
XSDLengthFacet.getValue()
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
-
- Specified by:
eInverseRemove in interface InternalEObject- Overrides:
eInverseRemove in class XSDFixedFacetImpl
eGet
public Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet in interface EObject- Overrides:
eGet in class XSDFixedFacetImpl
eSet
public void eSet(EStructuralFeature eFeature,
Object newValue)
-
- Specified by:
eSet in interface EObject- Overrides:
eSet in class XSDFixedFacetImpl
eUnset
public void eUnset(EStructuralFeature eFeature)
-
- Specified by:
eUnset in interface EObject- Overrides:
eUnset in class XSDFixedFacetImpl
eIsSet
public boolean eIsSet(EStructuralFeature eFeature)
-
- Specified by:
eIsSet in interface EObject- Overrides:
eIsSet in class XSDFixedFacetImpl
toString
public String toString()
-
- Overrides:
toString in class XSDFixedFacetImpl
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.
- Specified by:
validate in interface XSDConcreteComponent- Overrides:
validate in class XSDFixedFacetImpl
validateRestriction
protected void validateRestriction(XSDFixedFacet xsdFixedFacet)
- Overrides:
validateRestriction in class XSDFixedFacetImpl
changeAttribute
protected void changeAttribute(EAttribute eAttribute)
- Overrides:
changeAttribute in class XSDFixedFacetImpl
isConstraintSatisfied
public boolean isConstraintSatisfied(Object value)
- Description copied from interface:
XSDConstrainingFacet
- Returns whether the given value satisfies the constraint of this facet.
- Specified by:
isConstraintSatisfied in interface XSDConstrainingFacet- Overrides:
isConstraintSatisfied in class XSDConstrainingFacetImpl
getEffectiveValue
public 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- Overrides:
getEffectiveValue in class XSDFacetImpl
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