|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.BasicExtendedMetaData
public class BasicExtendedMetaData
This is a basic implementation of the extended metadata API.
Nested Class Summary | |
---|---|
class |
BasicExtendedMetaData.EClassExtendedMetaDataImpl
|
static interface |
BasicExtendedMetaData.EClassifierExtendedMetaData
|
class |
BasicExtendedMetaData.EDataTypeExtendedMetaDataImpl
|
static interface |
BasicExtendedMetaData.EPackageExtendedMetaData
|
class |
BasicExtendedMetaData.EPackageExtendedMetaDataImpl
|
static interface |
BasicExtendedMetaData.EStructuralFeatureExtendedMetaData
|
class |
BasicExtendedMetaData.EStructuralFeatureExtendedMetaDataImpl
|
Field Summary | |
---|---|
protected java.util.Map<EModelElement,EAnnotation> |
annotationMap
|
protected java.lang.String |
annotationURI
|
protected EPackage.Registry |
demandRegistry
|
protected java.util.Map<EModelElement,java.lang.Object> |
extendedMetaDataHolderCache
|
protected EPackage.Registry |
registry
|
protected static EDataType |
UNINITIALIZED_EDATA_TYPE
|
protected static EStructuralFeature |
UNINITIALIZED_ESTRUCTURAL_FEATURE
|
protected static int |
UNINITIALIZED_INT
|
protected static java.lang.String |
UNINITIALIZED_STRING
|
Constructor Summary | |
---|---|
BasicExtendedMetaData()
|
|
BasicExtendedMetaData(EPackage.Registry registry)
|
|
BasicExtendedMetaData(java.lang.String annotationURI,
EPackage.Registry registry)
|
|
BasicExtendedMetaData(java.lang.String annotationURI,
EPackage.Registry registry,
java.util.Map<EModelElement,EAnnotation> annotationMap)
|
Method Summary | |
---|---|
protected EStructuralFeature |
basicGetAffiliation(EStructuralFeature eStructuralFeature)
|
EDataType |
basicGetBaseType(EDataType eDataType)
|
protected int |
basicGetContentKind(EClass eClass)
|
protected int |
basicGetDerivationKind(EClassifier eClassifier)
|
protected java.util.List<java.lang.String> |
basicGetEnumerationFacet(EDataType eDataType)
|
protected int |
basicGetFeatureKind(EStructuralFeature eStructuralFeature)
|
protected int |
basicGetFractionDigitsFacet(EDataType eDataType)
|
protected EStructuralFeature |
basicGetGroup(EStructuralFeature eStructuralFeature)
|
protected EDataType |
basicGetItemType(EDataType eDataType)
|
protected int |
basicGetLengthFacet(EDataType eDataType)
|
protected java.lang.String |
basicGetMaxExclusiveFacet(EDataType eDataType)
|
protected java.lang.String |
basicGetMaxInclusiveFacet(EDataType eDataType)
|
protected int |
basicGetMaxLengthFacet(EDataType eDataType)
|
protected java.util.List<EDataType> |
basicGetMemberTypes(EDataType eDataType)
|
protected java.lang.String |
basicGetMinExclusiveFacet(EDataType eDataType)
|
protected java.lang.String |
basicGetMinInclusiveFacet(EDataType eDataType)
|
protected int |
basicGetMinLengthFacet(EDataType eDataType)
|
protected java.lang.String |
basicGetName(EClassifier eClassifier)
|
protected java.lang.String |
basicGetName(EStructuralFeature eStructuralFeature)
|
java.lang.String |
basicGetNamespace(EStructuralFeature eStructuralFeature)
|
protected java.util.List<java.lang.String> |
basicGetPatternFacet(EDataType eDataType)
|
protected int |
basicGetProcessingKind(EStructuralFeature eStructuralFeature)
|
protected int |
basicGetTotalDigitsFacet(EDataType eDataType)
|
protected int |
basicGetWhiteSpaceFacet(EDataType eDataType)
|
protected java.util.List<java.lang.String> |
basicGetWildcards(EStructuralFeature eStructuralFeature)
|
protected boolean |
basicIsQualified(EPackage ePackage)
|
protected java.lang.String |
computePrefix(java.lang.String namespace)
|
protected BasicExtendedMetaData.EClassifierExtendedMetaData |
createEClassifierExtendedMetaData(EClassifier eClassifier)
|
protected BasicExtendedMetaData.EPackageExtendedMetaData |
createEPackageExtendedMetaData(EPackage ePackage)
|
protected BasicExtendedMetaData.EStructuralFeatureExtendedMetaData |
createEStructuralFeatureExtendedMetaData(EStructuralFeature eStructuralFeature)
|
java.util.Collection<EPackage> |
demandedPackages()
Returns the instance's collection of demand-created packages. |
EStructuralFeature |
demandFeature(java.lang.String namespace,
java.lang.String name,
boolean isElement)
Returns a feature corresponding to a global element or attribute from the namespace-specified package in the demand package registry, creating it, and the package, if necessary. |
EStructuralFeature |
demandFeature(java.lang.String namespace,
java.lang.String name,
boolean isElement,
boolean isReference)
Returns a feature corresponding to a global element or attribute from the namespace-specified package in the demand package registry, creating it, and the package, if necessary. |
EPackage |
demandPackage(java.lang.String namespace)
Returns a package from the demand package registry, creating it (with a document root class) if necessary. |
EClassifier |
demandType(java.lang.String namespace,
java.lang.String name)
Returns a class from the namespace-specified package in the demand package registry, demand creating it, and the package, if necessary. |
EStructuralFeature |
getAffiliation(EClass eClass,
EStructuralFeature eStructuralFeature)
Returns a structural feature within the given class that is or is associated with the given structural feature. |
EStructuralFeature |
getAffiliation(EStructuralFeature eStructuralFeature)
Returns the substitution group affiliation for the given structural feature, that is, the feature corresponding to the head element of the substitution group to which the element corresponding to the given feature belongs. |
java.util.List<EStructuralFeature> |
getAllAttributes(EClass eClass)
Returns all the structural features of the given class, and its super classes, corresponding to XML attributes and attribute wildcards. |
java.util.List<EStructuralFeature> |
getAllElements(EClass eClass)
Returns all the structural features of the given class, and its super classes, corresponding to elements, element wildards, and model groups. |
protected EAnnotation |
getAnnotation(EModelElement eModelElement,
boolean demandCreate)
|
EStructuralFeature |
getAttribute(EClass eClass,
java.lang.String namespace,
java.lang.String name)
Returns a structural feature within a class, corresponding to a local attribute with the given namespace and name, or, failing that, a document root feature corresponding to a global attribute with the given namespace and name that is affiliated with a feature in the class. |
EStructuralFeature |
getAttribute(java.lang.String namespace,
java.lang.String name)
Returns the structural feature with the given XML name that corresponds to a global attribute within the package with the given namespace. |
java.util.List<EStructuralFeature> |
getAttributes(EClass eClass)
Returns the structural features of the given class corresponding to XML attributes and attribute wildcards. |
EStructuralFeature |
getAttributeWildcardAffiliation(EClass eClass,
java.lang.String namespace,
java.lang.String name)
Returns a wildcard feature in the given class that allows allows attribute values from the given namespace. |
EDataType |
getBaseType(EDataType eDataType)
If a data type corresponds to simple type that derives from another by restriction, returns the data type corresponding to the base type. |
int |
getContentKind(EClass eClass)
Returns the kind of XML content of the type corresponding to the given class. |
int |
getDerivationKind(EDataType eDataType)
Returns the derivation kind of the simple type corresponding to the given data type. |
EClass |
getDocumentRoot(EPackage ePackage)
Returns the class corresponding to the document root in the given package. |
EStructuralFeature |
getElement(EClass eClass,
java.lang.String namespace,
java.lang.String name)
Returns a structural feature within a class, corresponding to a local element with the given namespace and name, or, failing that, a document root feature corresponding to a global element with the given namespace and name that is affiliated with a feature in the class. |
EStructuralFeature |
getElement(java.lang.String namespace,
java.lang.String name)
Returns the structural feature with the given XML name that corresponds to a global element within the package with the given namespace. |
java.util.List<EStructuralFeature> |
getElements(EClass eClass)
Returns the structural features of the given class corresponding to elements, element wildcards, and model groups. |
EStructuralFeature |
getElementWildcardAffiliation(EClass eClass,
java.lang.String namespace,
java.lang.String name)
Returns a wildcard feature in the given class that allows allows element values from the given namespace. |
static java.lang.String |
getEncodedWildcards(java.lang.String namespace,
java.util.List<java.lang.String> wildcards)
|
java.util.List<java.lang.String> |
getEnumerationFacet(EDataType eDataType)
Returns the enumeration constraint on the given data type. |
protected BasicExtendedMetaData.EClassifierExtendedMetaData |
getExtendedMetaData(EClassifier eClassifier)
|
protected BasicExtendedMetaData.EPackageExtendedMetaData |
getExtendedMetaData(EPackage ePackage)
|
protected BasicExtendedMetaData.EStructuralFeatureExtendedMetaData |
getExtendedMetaData(EStructuralFeature eStructuralFeature)
|
int |
getFeatureKind(EStructuralFeature eStructuralFeature)
Returns the kind of XML structure that should be used to represent the given structural feature. |
int |
getFractionDigitsFacet(EDataType eDataType)
Returns the fraction digits constraint on the given data type. |
EStructuralFeature |
getGroup(EStructuralFeature eStructuralFeature)
Returns the feature respresenting the model group or subtitution group head feature to which the implementation of the given feature is delegated. |
EDataType |
getItemType(EDataType eDataType)
If a data type corresponds to a list type, returns the data type corresponding to its item type. |
int |
getLengthFacet(EDataType eDataType)
Returns the length constraint on the given data type. |
EStructuralFeature |
getLocalAttribute(EClass eClass,
java.lang.String namespace,
java.lang.String name)
|
protected EStructuralFeature |
getLocalElement(EClass eClass,
java.lang.String namespace,
java.lang.String name)
|
java.lang.String |
getMaxExclusiveFacet(EDataType eDataType)
Returns the maximum (exclusive) constraint on the given data type. |
java.lang.String |
getMaxInclusiveFacet(EDataType eDataType)
Returns the maximum (inclusive) constraint on the given data type. |
int |
getMaxLengthFacet(EDataType eDataType)
Returns the maximum length constraint on the given data type. |
java.util.List<EDataType> |
getMemberTypes(EDataType eDataType)
If a data type corresponds to a union type, returns the data types corresponding to its member types. |
java.lang.String |
getMinExclusiveFacet(EDataType eDataType)
Returns the minimum (exclusive) constraint on the given data type. |
java.lang.String |
getMinInclusiveFacet(EDataType eDataType)
Returns the minimum (inclusive) constraint on the given data type. |
int |
getMinLengthFacet(EDataType eDataType)
Returns the minumum length constraint on the given data type. |
EAttribute |
getMixedFeature(EClass eClass)
If the given class represents mixed content, returns the wildcard element feature used to store its content. |
java.lang.String |
getName(EClassifier eClassifier)
Returns the XML name for a classifier. |
java.lang.String |
getName(EStructuralFeature eStructuralFeature)
Returns the XML name for a structural feature. |
java.lang.String |
getNamespace(EClassifier eClassifier)
Returns the namespace to use for instances of the given classifier, the same namespace as for the package that contains it. |
java.lang.String |
getNamespace(EPackage ePackage)
Returns the namespace to use for model instance serializations of the specified package. |
java.lang.String |
getNamespace(EStructuralFeature eStructuralFeature)
Returns the namespace associated with the specified structural feature. |
EPackage |
getPackage(java.lang.String namespace)
Retrieves the package with the specified namespace URI from the package registry associated with this instance. |
java.util.List<java.lang.String> |
getPatternFacet(EDataType eDataType)
Returns the pattern constraint on the given data type. |
int |
getProcessingKind(EStructuralFeature eStructuralFeature)
Returns the kind of contents processing to be used for a structural feature corresponding to an any wildcard. |
protected java.lang.String |
getQualifiedName(java.lang.String defaultNamespace,
EClassifier eClassifier)
|
protected java.lang.String |
getQualifiedName(java.lang.String defaultNamespace,
EStructuralFeature eStructuralFeature)
|
EStructuralFeature |
getSimpleFeature(EClass eClass)
If the given class represents simple content, returns the simple feature used to store its content. |
int |
getTotalDigitsFacet(EDataType eDataType)
Returns the total digits constraint on the given data type. |
EClassifier |
getType(EPackage ePackage,
java.lang.String name)
Returns the classifier with the given XML name within the given package. |
EClassifier |
getType(java.lang.String namespace,
java.lang.String name)
Returns the classifier with the given XML name within the package with the given namespace. |
int |
getWhiteSpaceFacet(EDataType eDataType)
Returns the white space constraint on the given data type. |
java.util.List<java.lang.String> |
getWildcards(EStructuralFeature eStructuralFeature)
Returns the allowable namespace patterns for a structural feature corresponding to an any or anyAttribute wildcard. |
EReference |
getXMLNSPrefixMapFeature(EClass eClass)
If the given class has mixed content type, returns the "xmlns:prefix" feature, which is used to store namespace prefix-to-URI mappings. |
EReference |
getXSISchemaLocationMapFeature(EClass eClass)
If the given class has mixed content type, returns the "xsi:schemaLocation" feature, which is used to store namespace URI-schema location pairs. |
boolean |
isAnonymous(EClassifier eClassifier)
Returns whether the given classifier's XML name contains "_._", which is used to indicate an anonymous type declaration. |
boolean |
isDocumentRoot(EClass eClass)
Returns whether the given class is a document root, i.e., whether it has an empty string as its XML Name. |
protected boolean |
isFeatureKindSpecific()
|
protected boolean |
isFeatureNamespaceMatchingLax()
|
boolean |
isQualified(EPackage ePackage)
Returns whether model instance serializations of the specified package should use namespace qualification. |
boolean |
matches(java.util.List<java.lang.String> wildcards,
java.lang.String namespace)
Tests whether any of a list of wildcards matches a given namespace. |
boolean |
matches(java.lang.String wildcard,
java.lang.String namespace)
Tests whether a wildcard matches a given namespace. |
void |
putPackage(java.lang.String namespace,
EPackage ePackage)
Adds the package to the package registry associated with this instance, keyed by the given namespace URI. |
void |
setAffiliation(EStructuralFeature eStructuralFeature,
EStructuralFeature affiliation)
Sets the substitution group affiliation for the given structural feature. |
void |
setBaseType(EDataType eDataType,
EDataType baseType)
Sets the base type for a data type, indicating that the data type corresponds to a simple type that derives from another by restriction. |
void |
setContentKind(EClass eClass,
int kind)
Sets the kind of XML content of the type corresponding to the given class. |
void |
setDocumentRoot(EClass eClass)
Sets the specified class to be a document root. |
void |
setEnumerationFacet(EDataType eDataType,
java.util.List<java.lang.String> literals)
Sets the enumeration constraint on the given data type. |
void |
setFeatureKind(EStructuralFeature eStructuralFeature,
int kind)
Sets the kind of XML structure that should be used to represent the given structural feature. |
void |
setFractionDigitsFacet(EDataType eDataType,
int digits)
Sets the fraction digits constraint on the given data type. |
void |
setGroup(EStructuralFeature eStructuralFeature,
EStructuralFeature group)
Sets a group or substitution group head feature, to which the implementation of the given feature should be delegated. |
void |
setItemType(EDataType eDataType,
EDataType itemType)
Sets the item type for a data type, indicating that the data type corresponds to a list type. |
void |
setLengthFacet(EDataType eDataType,
int length)
Sets the length constraint on the given data type. |
void |
setMaxExclusiveFacet(EDataType eDataType,
java.lang.String literal)
Sets the maximum (exclusive) constraint on the given data type. |
void |
setMaxInclusiveFacet(EDataType eDataType,
java.lang.String literal)
Sets the maximum (inclusive) constraint on the given data type. |
void |
setMaxLengthFacet(EDataType eDataType,
int length)
Sets the maximum length constraint on the given data type. |
void |
setMemberTypes(EDataType eDataType,
java.util.List<EDataType> memberTypes)
Sets the member types for a data type, indicating that the data type corresponds to a union type. |
void |
setMinExclusiveFacet(EDataType eDataType,
java.lang.String literal)
Sets the minimum (exclusive) constraint on the given data type. |
void |
setMinInclusiveFacet(EDataType eDataType,
java.lang.String literal)
Sets the minimum (inclusive) constraint on the given data type. |
void |
setMinLengthFacet(EDataType eDataType,
int length)
Sets the minimum length constraint on the given data type. |
void |
setName(EClassifier eClassifier,
java.lang.String name)
Sets the XML name for a classifier. |
void |
setName(EStructuralFeature eStructuralFeature,
java.lang.String name)
Set the XML name for a structural feature. |
void |
setNamespace(EStructuralFeature eStructuralFeature,
java.lang.String namespace)
Sets the namespace associated with the specified structural feature. |
void |
setPatternFacet(EDataType eDataType,
java.util.List<java.lang.String> pattern)
Sets the pattern constraint on the given data type. |
void |
setProcessingKind(EStructuralFeature eStructuralFeature,
int kind)
Sets the kind of contents processing to be used for a structural feature corresponding to an any wildcard. |
void |
setQualified(EPackage ePackage,
boolean isQualified)
Sets whether model instance serializations of the specified package should use namespace qualification. |
void |
setTotalDigitsFacet(EDataType eDataType,
int digits)
Sets the total digits constraint on the given data type. |
void |
setWhiteSpaceFacet(EDataType eDataType,
int whiteSpace)
Sets the white space constraint on the given data type. |
void |
setWildcards(EStructuralFeature eStructuralFeature,
java.util.List<java.lang.String> wildcards)
Sets the allowable namespace patterns for a structural feature corresponding to an any or anyAttribute wildcard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String annotationURI
protected EPackage.Registry registry
protected EPackage.Registry demandRegistry
protected java.util.Map<EModelElement,java.lang.Object> extendedMetaDataHolderCache
protected java.util.Map<EModelElement,EAnnotation> annotationMap
protected static final java.lang.String UNINITIALIZED_STRING
protected static final int UNINITIALIZED_INT
protected static final EDataType UNINITIALIZED_EDATA_TYPE
protected static final EStructuralFeature UNINITIALIZED_ESTRUCTURAL_FEATURE
Constructor Detail |
---|
public BasicExtendedMetaData()
public BasicExtendedMetaData(EPackage.Registry registry)
public BasicExtendedMetaData(java.lang.String annotationURI, EPackage.Registry registry)
public BasicExtendedMetaData(java.lang.String annotationURI, EPackage.Registry registry, java.util.Map<EModelElement,EAnnotation> annotationMap)
Method Detail |
---|
protected EAnnotation getAnnotation(EModelElement eModelElement, boolean demandCreate)
public EClassifier getType(EPackage ePackage, java.lang.String name)
ExtendedMetaData
getType
in interface ExtendedMetaData
public EPackage getPackage(java.lang.String namespace)
ExtendedMetaData
getPackage
in interface ExtendedMetaData
public void putPackage(java.lang.String namespace, EPackage ePackage)
ExtendedMetaData
putPackage
in interface ExtendedMetaData
public EClass getDocumentRoot(EPackage ePackage)
ExtendedMetaData
getDocumentRoot
in interface ExtendedMetaData
public void setDocumentRoot(EClass eClass)
ExtendedMetaData
setDocumentRoot
in interface ExtendedMetaData
public boolean isDocumentRoot(EClass eClass)
ExtendedMetaData
isDocumentRoot
in interface ExtendedMetaData
public EReference getXMLNSPrefixMapFeature(EClass eClass)
ExtendedMetaData
getXMLNSPrefixMapFeature
in interface ExtendedMetaData
public EReference getXSISchemaLocationMapFeature(EClass eClass)
ExtendedMetaData
getXSISchemaLocationMapFeature
in interface ExtendedMetaData
public boolean isQualified(EPackage ePackage)
ExtendedMetaData
details key: "qualified"
isQualified
in interface ExtendedMetaData
protected boolean basicIsQualified(EPackage ePackage)
public void setQualified(EPackage ePackage, boolean isQualified)
ExtendedMetaData
details key: "qualified"
setQualified
in interface ExtendedMetaData
public java.lang.String getNamespace(EPackage ePackage)
ExtendedMetaData
details key: "namespace"
getNamespace
in interface ExtendedMetaData
public java.lang.String getNamespace(EClassifier eClassifier)
ExtendedMetaData
getNamespace
in interface ExtendedMetaData
public java.lang.String getNamespace(EStructuralFeature eStructuralFeature)
ExtendedMetaData
getNamespace
in interface ExtendedMetaData
public java.lang.String basicGetNamespace(EStructuralFeature eStructuralFeature)
public void setNamespace(EStructuralFeature eStructuralFeature, java.lang.String namespace)
ExtendedMetaData
setNamespace
in interface ExtendedMetaData
public java.lang.String getName(EClassifier eClassifier)
ExtendedMetaData
details key: "name"
getName
in interface ExtendedMetaData
protected java.lang.String basicGetName(EClassifier eClassifier)
public void setName(EClassifier eClassifier, java.lang.String name)
ExtendedMetaData
details key: "name"
setName
in interface ExtendedMetaData
public boolean isAnonymous(EClassifier eClassifier)
ExtendedMetaData
isAnonymous
in interface ExtendedMetaData
public java.lang.String getName(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "name"
getName
in interface ExtendedMetaData
protected java.lang.String basicGetName(EStructuralFeature eStructuralFeature)
public void setName(EStructuralFeature eStructuralFeature, java.lang.String name)
ExtendedMetaData
details key: "name"
setName
in interface ExtendedMetaData
protected java.lang.String getQualifiedName(java.lang.String defaultNamespace, EClassifier eClassifier)
protected java.lang.String getQualifiedName(java.lang.String defaultNamespace, EStructuralFeature eStructuralFeature)
public EClassifier getType(java.lang.String namespace, java.lang.String name)
ExtendedMetaData
getType
in interface ExtendedMetaData
public EStructuralFeature getAttribute(java.lang.String namespace, java.lang.String name)
ExtendedMetaData
getAttribute
in interface ExtendedMetaData
public EStructuralFeature getElement(java.lang.String namespace, java.lang.String name)
ExtendedMetaData
getElement
in interface ExtendedMetaData
public int getFeatureKind(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "kind"
getFeatureKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_FEATURE
,
ExtendedMetaData.SIMPLE_FEATURE
,
ExtendedMetaData.ATTRIBUTE_FEATURE
,
ExtendedMetaData.ATTRIBUTE_WILDCARD_FEATURE
,
ExtendedMetaData.ELEMENT_FEATURE
,
ExtendedMetaData.ELEMENT_WILDCARD_FEATURE
,
ExtendedMetaData.GROUP_FEATURE
protected int basicGetFeatureKind(EStructuralFeature eStructuralFeature)
public void setFeatureKind(EStructuralFeature eStructuralFeature, int kind)
ExtendedMetaData
details key: "kind"
setFeatureKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_FEATURE
,
ExtendedMetaData.SIMPLE_FEATURE
,
ExtendedMetaData.ATTRIBUTE_FEATURE
,
ExtendedMetaData.ATTRIBUTE_WILDCARD_FEATURE
,
ExtendedMetaData.ELEMENT_FEATURE
,
ExtendedMetaData.ELEMENT_WILDCARD_FEATURE
,
ExtendedMetaData.GROUP_FEATURE
public int getContentKind(EClass eClass)
ExtendedMetaData
details key: "kind"
getContentKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_CONTENT
,
ExtendedMetaData.EMPTY_CONTENT
,
ExtendedMetaData.SIMPLE_CONTENT
,
ExtendedMetaData.MIXED_CONTENT
,
ExtendedMetaData.ELEMENT_ONLY_CONTENT
protected int basicGetContentKind(EClass eClass)
public void setContentKind(EClass eClass, int kind)
ExtendedMetaData
details key: "kind"
setContentKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_CONTENT
,
ExtendedMetaData.EMPTY_CONTENT
,
ExtendedMetaData.SIMPLE_CONTENT
,
ExtendedMetaData.MIXED_CONTENT
,
ExtendedMetaData.ELEMENT_ONLY_CONTENT
public int getDerivationKind(EDataType eDataType)
ExtendedMetaData
getDerivationKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_DERIVATION
,
ExtendedMetaData.RESTRICTION_DERIVATION
,
ExtendedMetaData.LIST_DERIVATION
,
ExtendedMetaData.UNION_DERIVATION
protected int basicGetDerivationKind(EClassifier eClassifier)
public EDataType getBaseType(EDataType eDataType)
ExtendedMetaData
details key: "baseType"
getBaseType
in interface ExtendedMetaData
public EDataType basicGetBaseType(EDataType eDataType)
public void setBaseType(EDataType eDataType, EDataType baseType)
ExtendedMetaData
details key: "baseType"
setBaseType
in interface ExtendedMetaData
public EDataType getItemType(EDataType eDataType)
ExtendedMetaData
details key: "itemType"
getItemType
in interface ExtendedMetaData
protected EDataType basicGetItemType(EDataType eDataType)
public void setItemType(EDataType eDataType, EDataType itemType)
ExtendedMetaData
details key: "itemType"
setItemType
in interface ExtendedMetaData
public java.util.List<EDataType> getMemberTypes(EDataType eDataType)
ExtendedMetaData
details key: "memberTypes"
getMemberTypes
in interface ExtendedMetaData
protected java.util.List<EDataType> basicGetMemberTypes(EDataType eDataType)
public void setMemberTypes(EDataType eDataType, java.util.List<EDataType> memberTypes)
ExtendedMetaData
details key: "memberTypes"
setMemberTypes
in interface ExtendedMetaData
protected boolean isFeatureKindSpecific()
protected boolean isFeatureNamespaceMatchingLax()
public EStructuralFeature getLocalAttribute(EClass eClass, java.lang.String namespace, java.lang.String name)
public EStructuralFeature getAttribute(EClass eClass, java.lang.String namespace, java.lang.String name)
ExtendedMetaData
affiliated
with a feature in the class.
getAttribute
in interface ExtendedMetaData
protected EStructuralFeature getLocalElement(EClass eClass, java.lang.String namespace, java.lang.String name)
public EStructuralFeature getElement(EClass eClass, java.lang.String namespace, java.lang.String name)
ExtendedMetaData
affiliated
with a feature in the class.
getElement
in interface ExtendedMetaData
public java.util.List<EStructuralFeature> getAllAttributes(EClass eClass)
ExtendedMetaData
getAllAttributes
in interface ExtendedMetaData
public java.util.List<EStructuralFeature> getAllElements(EClass eClass)
ExtendedMetaData
getAllElements
in interface ExtendedMetaData
public java.util.List<EStructuralFeature> getAttributes(EClass eClass)
ExtendedMetaData
getAttributes
in interface ExtendedMetaData
public java.util.List<EStructuralFeature> getElements(EClass eClass)
ExtendedMetaData
getElements
in interface ExtendedMetaData
public EStructuralFeature getSimpleFeature(EClass eClass)
ExtendedMetaData
getSimpleFeature
in interface ExtendedMetaData
public EAttribute getMixedFeature(EClass eClass)
ExtendedMetaData
getMixedFeature
in interface ExtendedMetaData
public java.util.List<java.lang.String> getWildcards(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "wildcards"
getWildcards
in interface ExtendedMetaData
protected java.util.List<java.lang.String> basicGetWildcards(EStructuralFeature eStructuralFeature)
public void setWildcards(EStructuralFeature eStructuralFeature, java.util.List<java.lang.String> wildcards)
ExtendedMetaData
details key: "wildcards"
setWildcards
in interface ExtendedMetaData
public static java.lang.String getEncodedWildcards(java.lang.String namespace, java.util.List<java.lang.String> wildcards)
public int getProcessingKind(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "processing"
getProcessingKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_PROCESSING
,
ExtendedMetaData.STRICT_PROCESSING
,
ExtendedMetaData.LAX_PROCESSING
,
ExtendedMetaData.SKIP_PROCESSING
protected int basicGetProcessingKind(EStructuralFeature eStructuralFeature)
public void setProcessingKind(EStructuralFeature eStructuralFeature, int kind)
ExtendedMetaData
details key: "processing"
setProcessingKind
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_PROCESSING
,
ExtendedMetaData.STRICT_PROCESSING
,
ExtendedMetaData.LAX_PROCESSING
,
ExtendedMetaData.SKIP_PROCESSING
public EStructuralFeature getGroup(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "group"
getGroup
in interface ExtendedMetaData
protected EStructuralFeature basicGetGroup(EStructuralFeature eStructuralFeature)
public void setGroup(EStructuralFeature eStructuralFeature, EStructuralFeature group)
ExtendedMetaData
details key: "group"
setGroup
in interface ExtendedMetaData
public EStructuralFeature getAffiliation(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "affiliation"
getAffiliation
in interface ExtendedMetaData
protected EStructuralFeature basicGetAffiliation(EStructuralFeature eStructuralFeature)
public void setAffiliation(EStructuralFeature eStructuralFeature, EStructuralFeature affiliation)
ExtendedMetaData
details key: "affiliation"
setAffiliation
in interface ExtendedMetaData
public EStructuralFeature getAffiliation(EClass eClass, EStructuralFeature eStructuralFeature)
ExtendedMetaData
getAffiliation
in interface ExtendedMetaData
public EStructuralFeature getAttributeWildcardAffiliation(EClass eClass, java.lang.String namespace, java.lang.String name)
ExtendedMetaData
getAttributeWildcardAffiliation
in interface ExtendedMetaData
public EStructuralFeature getElementWildcardAffiliation(EClass eClass, java.lang.String namespace, java.lang.String name)
ExtendedMetaData
getElementWildcardAffiliation
in interface ExtendedMetaData
public boolean matches(java.util.List<java.lang.String> wildcards, java.lang.String namespace)
ExtendedMetaData
matches
in interface ExtendedMetaData
public boolean matches(java.lang.String wildcard, java.lang.String namespace)
ExtendedMetaData
matches
in interface ExtendedMetaData
public int getWhiteSpaceFacet(EDataType eDataType)
ExtendedMetaData
details key: "whiteSpace"
getWhiteSpaceFacet
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_WHITE_SPACE
,
ExtendedMetaData.PRESERVE_WHITE_SPACE
,
ExtendedMetaData.REPLACE_WHITE_SPACE
,
ExtendedMetaData.COLLAPSE_WHITE_SPACE
protected int basicGetWhiteSpaceFacet(EDataType eDataType)
public void setWhiteSpaceFacet(EDataType eDataType, int whiteSpace)
ExtendedMetaData
details key: "whiteSpace"
setWhiteSpaceFacet
in interface ExtendedMetaData
ExtendedMetaData.UNSPECIFIED_WHITE_SPACE
,
ExtendedMetaData.PRESERVE_WHITE_SPACE
,
ExtendedMetaData.REPLACE_WHITE_SPACE
,
ExtendedMetaData.COLLAPSE_WHITE_SPACE
public java.util.List<java.lang.String> getEnumerationFacet(EDataType eDataType)
ExtendedMetaData
details key: "enumeration"
getEnumerationFacet
in interface ExtendedMetaData
protected java.util.List<java.lang.String> basicGetEnumerationFacet(EDataType eDataType)
public void setEnumerationFacet(EDataType eDataType, java.util.List<java.lang.String> literals)
ExtendedMetaData
details key: "enumeration"
setEnumerationFacet
in interface ExtendedMetaData
public java.util.List<java.lang.String> getPatternFacet(EDataType eDataType)
ExtendedMetaData
details key: "pattern"
getPatternFacet
in interface ExtendedMetaData
protected java.util.List<java.lang.String> basicGetPatternFacet(EDataType eDataType)
public void setPatternFacet(EDataType eDataType, java.util.List<java.lang.String> pattern)
ExtendedMetaData
details key: "pattern"
setPatternFacet
in interface ExtendedMetaData
public int getTotalDigitsFacet(EDataType eDataType)
ExtendedMetaData
details key: "totalDigits"
getTotalDigitsFacet
in interface ExtendedMetaData
protected int basicGetTotalDigitsFacet(EDataType eDataType)
public void setTotalDigitsFacet(EDataType eDataType, int digits)
ExtendedMetaData
details key: "totalDigits"
setTotalDigitsFacet
in interface ExtendedMetaData
public int getFractionDigitsFacet(EDataType eDataType)
ExtendedMetaData
details key: "fractionDigits"
getFractionDigitsFacet
in interface ExtendedMetaData
protected int basicGetFractionDigitsFacet(EDataType eDataType)
public void setFractionDigitsFacet(EDataType eDataType, int digits)
ExtendedMetaData
details key: "fractionDigits"
setFractionDigitsFacet
in interface ExtendedMetaData
public int getLengthFacet(EDataType eDataType)
ExtendedMetaData
details key: "length"
getLengthFacet
in interface ExtendedMetaData
protected int basicGetLengthFacet(EDataType eDataType)
public void setLengthFacet(EDataType eDataType, int length)
ExtendedMetaData
details key: "length"
setLengthFacet
in interface ExtendedMetaData
public int getMinLengthFacet(EDataType eDataType)
ExtendedMetaData
details key: "minLength"
getMinLengthFacet
in interface ExtendedMetaData
protected int basicGetMinLengthFacet(EDataType eDataType)
public void setMinLengthFacet(EDataType eDataType, int length)
ExtendedMetaData
details key: "minLength"
setMinLengthFacet
in interface ExtendedMetaData
public int getMaxLengthFacet(EDataType eDataType)
ExtendedMetaData
details key: "maxLength"
getMaxLengthFacet
in interface ExtendedMetaData
protected int basicGetMaxLengthFacet(EDataType eDataType)
public void setMaxLengthFacet(EDataType eDataType, int length)
ExtendedMetaData
details key: "maxLength"
setMaxLengthFacet
in interface ExtendedMetaData
public java.lang.String getMinExclusiveFacet(EDataType eDataType)
ExtendedMetaData
details key: "minExclusive"
getMinExclusiveFacet
in interface ExtendedMetaData
protected java.lang.String basicGetMinExclusiveFacet(EDataType eDataType)
public void setMinExclusiveFacet(EDataType eDataType, java.lang.String literal)
ExtendedMetaData
details key: "minExclusive"
setMinExclusiveFacet
in interface ExtendedMetaData
public java.lang.String getMaxExclusiveFacet(EDataType eDataType)
ExtendedMetaData
details key: "maxExclusive"
getMaxExclusiveFacet
in interface ExtendedMetaData
protected java.lang.String basicGetMaxExclusiveFacet(EDataType eDataType)
public void setMaxExclusiveFacet(EDataType eDataType, java.lang.String literal)
ExtendedMetaData
details key: "maxExclusive"
setMaxExclusiveFacet
in interface ExtendedMetaData
public java.lang.String getMinInclusiveFacet(EDataType eDataType)
ExtendedMetaData
details key: "minInclusive"
getMinInclusiveFacet
in interface ExtendedMetaData
protected java.lang.String basicGetMinInclusiveFacet(EDataType eDataType)
public void setMinInclusiveFacet(EDataType eDataType, java.lang.String literal)
ExtendedMetaData
details key: "minInclusive"
setMinInclusiveFacet
in interface ExtendedMetaData
public java.lang.String getMaxInclusiveFacet(EDataType eDataType)
ExtendedMetaData
details key: "maxInclusive"
getMaxInclusiveFacet
in interface ExtendedMetaData
protected java.lang.String basicGetMaxInclusiveFacet(EDataType eDataType)
public void setMaxInclusiveFacet(EDataType eDataType, java.lang.String literal)
ExtendedMetaData
details key: "maxInclusive"
setMaxInclusiveFacet
in interface ExtendedMetaData
public EPackage demandPackage(java.lang.String namespace)
ExtendedMetaData
demandPackage
in interface ExtendedMetaData
protected java.lang.String computePrefix(java.lang.String namespace)
public EClassifier demandType(java.lang.String namespace, java.lang.String name)
ExtendedMetaData
demandType
in interface ExtendedMetaData
public EStructuralFeature demandFeature(java.lang.String namespace, java.lang.String name, boolean isElement)
ExtendedMetaData
demandFeature
in interface ExtendedMetaData
public EStructuralFeature demandFeature(java.lang.String namespace, java.lang.String name, boolean isElement, boolean isReference)
ExtendedMetaData
demandFeature
in interface ExtendedMetaData
public java.util.Collection<EPackage> demandedPackages()
ExtendedMetaData
demandedPackages
in interface ExtendedMetaData
protected BasicExtendedMetaData.EPackageExtendedMetaData getExtendedMetaData(EPackage ePackage)
protected BasicExtendedMetaData.EPackageExtendedMetaData createEPackageExtendedMetaData(EPackage ePackage)
protected BasicExtendedMetaData.EClassifierExtendedMetaData getExtendedMetaData(EClassifier eClassifier)
protected BasicExtendedMetaData.EClassifierExtendedMetaData createEClassifierExtendedMetaData(EClassifier eClassifier)
protected BasicExtendedMetaData.EStructuralFeatureExtendedMetaData getExtendedMetaData(EStructuralFeature eStructuralFeature)
protected BasicExtendedMetaData.EStructuralFeatureExtendedMetaData createEStructuralFeatureExtendedMetaData(EStructuralFeature eStructuralFeature)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |