|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedMetaData
Interface for accessing and setting extended metadata on Ecore model elements. Such metadata is primarily used to support structures defined in XML schema and to retain additional information that a resource requires to produce conforming serializations. However, non-schema-based models may use this interface to support constructs such as mixed content, repeating model groups, and wildcard features, as well as to customize model serialization.
The extended metadata is stored on an Ecore model element as an annotation with source ANNOTATION_URI
. Each
piece of information is recorded as a key-value pair of strings in its details map. This interface provides
the following utility methods to set and query those annotations:
getNamespace
(package)isQualified
/setQualified
getName
/setName
(classifier)getNamespace
(classifier)getName
/setName
(structural feature)getNamespace
/setNamespace
getFeatureKind
/setFeatureKind
getContentKind
/setContentKind
getBaseType
/setBaseType
getItemType
/setItemType
getMemberTypes
/setMemberTypes
getWildcards
/setWildcards
getProcessingKind
/setProcessingKind
getAffiliation
/setAffiliation
getGroup
/setGroup
getWhiteSpaceFacet
/setWhiteSpaceFacet
getEnumerationFacet
/setEnumerationFacet
getPatternFacet
/setPatternFacet
getTotalDigitsFacet
/setTotalDigitsFacet
getFractionDigitsFacet
/setFractionDigitsFacet
getLengthFacet
/setLengthFacet
getMinLengthFacet
/setMinLengthFacet
getMaxLengthFacet
/setMaxLengthFacet
getMinExclusiveFacet
/setMinExclusiveFacet
getMaxExclusiveFacet
/setMaxExclusiveFacet
getMinInclusiveFacet
/setMinInclusiveFacet
getMaxInclusiveFacet
/setMaxInclusiveFacet
In additional, a number of convenience lookup methods are provided.
A single instance can be used to handle all related (or unrelated) metadata, as its only state is the package registry from which to obtain metadata, and the demand package registry, which stores demand-created metadata when processing data for which metadata has not already been defined.
Field Summary | |
---|---|
static java.lang.String |
ANNOTATION_URI
The URI used as the annotation source: "http:///org/eclipse/emf/ecore/util/ExtendedMetaData". |
static int |
ATTRIBUTE_FEATURE
The feature kind ID representing an attribute. |
static int |
ATTRIBUTE_WILDCARD_FEATURE
The feature kind ID representing an anyAttribute wildcard. |
static int |
COLLAPSE_WHITE_SPACE
The white space kind ID for collapse (all contiguous white space characters to a single space). |
static java.lang.String[] |
CONTENT_KINDS
The strings used to represent the various content kinds in extended metadata annotations, indexed by kind ID. |
static java.lang.String[] |
DERIVATION_KINDS
The strings used to represent the various derivation kinds , indexed by kind ID. |
static int |
ELEMENT_FEATURE
The feature kind ID representing an element. |
static int |
ELEMENT_ONLY_CONTENT
The content kind ID specifying element content. |
static int |
ELEMENT_WILDCARD_FEATURE
The feature kind ID representing an any element wildcard. |
static int |
EMPTY_CONTENT
The content kind ID specifying empty content. |
static java.lang.String[] |
FEATURE_KINDS
The strings used to represent the various feature kinds in extended metadata annotations, indexed by kind ID. |
static int |
GROUP_FEATURE
The feature kind ID representing a repeating model group. |
static ExtendedMetaData |
INSTANCE
The default ExtendedMetaData instance, which obtains packages from the global package registry, EPackage.Registry.INSTANCE . |
static int |
LAX_PROCESSING
The processing kind ID for lax processing. |
static int |
LIST_DERIVATION
The derivation kind ID for list. |
static int |
MIXED_CONTENT
The content kind ID specifying mixed content. |
static int |
PRESERVE_WHITE_SPACE
The white space kind ID for preserve. |
static java.lang.String[] |
PROCESSING_KINDS
The strings used to represent the various processing kinds in extended metadata annotations, indexed by kind ID. |
static int |
REPLACE_WHITE_SPACE
The white space kind ID for replace (each white space character by a space). |
static int |
RESTRICTION_DERIVATION
The derivation kind ID for restriction. |
static int |
SIMPLE_CONTENT
The content kind ID specifying simple content. |
static int |
SIMPLE_FEATURE
The feature kind ID representing a simple value. |
static int |
SKIP_PROCESSING
The processing kind ID for skip processing. |
static int |
STRICT_PROCESSING
The processing kind ID for strict processing. |
static int |
UNION_DERIVATION
The derivation kind ID for union. |
static int |
UNSPECIFIED_CONTENT
The content kind ID for an unspecified kind. |
static int |
UNSPECIFIED_DERIVATION
The derivation kind ID for an unspecified derivation. |
static int |
UNSPECIFIED_FEATURE
The feature kind ID for an unspecified kind. |
static int |
UNSPECIFIED_PROCESSING
The processing kind ID for unspecified processing. |
static int |
UNSPECIFIED_WHITE_SPACE
The white space kind ID for an unspecified kind. |
static java.lang.String[] |
WHITE_SPACE_KINDS
The strings used to represent the various white space kinds in extended metadata annotations, indexed by kind ID. |
static java.lang.String |
XMI_URI
The XMI namespace URI: "http://www.omg.org/XMI". |
static java.lang.String |
XML_SCHEMA_URI
The XML Schema namespace URI: "http://www.w3.org/2001/XMLSchema". |
static java.lang.String |
XML_URI
The XML namespace URI: "http://www.w3.org/XML/1998/namespace". |
static java.lang.String |
XMLNS_PREFIX
The prefix reserved for XML namespaces: "xmlns". |
static java.lang.String |
XMLNS_URI
The namespace URI for XML namespaces: "http://www.w3.org/2000/xmlns/". |
static java.lang.String |
XSI_PREFIX
The prefix used for the XML Schema instance namespace. |
static java.lang.String |
XSI_URI
The XML Schema instance namespace URI: "http://www.w3.org/2001/XMLSchema-instance". |
Method Summary | |
---|---|
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. |
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. |
java.util.List<java.lang.String> |
getEnumerationFacet(EDataType eDataType)
Returns the enumeration constraint on the given data type. |
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. |
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. |
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. |
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 processingKind)
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. |
Field Detail |
---|
static final java.lang.String ANNOTATION_URI
static final java.lang.String XMLNS_URI
static final java.lang.String XML_URI
static final java.lang.String XSI_URI
static final java.lang.String XML_SCHEMA_URI
static final java.lang.String XMI_URI
static final java.lang.String XMLNS_PREFIX
static final java.lang.String XSI_PREFIX
static final int UNSPECIFIED_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int SIMPLE_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int ATTRIBUTE_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int ATTRIBUTE_WILDCARD_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int ELEMENT_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int ELEMENT_WILDCARD_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int GROUP_FEATURE
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final java.lang.String[] FEATURE_KINDS
getFeatureKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setFeatureKind(org.eclipse.emf.ecore.EStructuralFeature, int)
static final int UNSPECIFIED_CONTENT
getContentKind(org.eclipse.emf.ecore.EClass)
,
setContentKind(org.eclipse.emf.ecore.EClass, int)
,
Constant Field Valuesstatic final int EMPTY_CONTENT
getContentKind(org.eclipse.emf.ecore.EClass)
,
setContentKind(org.eclipse.emf.ecore.EClass, int)
,
Constant Field Valuesstatic final int SIMPLE_CONTENT
getContentKind(org.eclipse.emf.ecore.EClass)
,
setContentKind(org.eclipse.emf.ecore.EClass, int)
,
Constant Field Valuesstatic final int MIXED_CONTENT
getContentKind(org.eclipse.emf.ecore.EClass)
,
setContentKind(org.eclipse.emf.ecore.EClass, int)
,
Constant Field Valuesstatic final int ELEMENT_ONLY_CONTENT
getContentKind(org.eclipse.emf.ecore.EClass)
,
setContentKind(org.eclipse.emf.ecore.EClass, int)
,
Constant Field Valuesstatic final java.lang.String[] CONTENT_KINDS
getContentKind(org.eclipse.emf.ecore.EClass)
,
setContentKind(org.eclipse.emf.ecore.EClass, int)
static final int UNSPECIFIED_DERIVATION
getDerivationKind(org.eclipse.emf.ecore.EDataType)
,
Constant Field Valuesstatic final int RESTRICTION_DERIVATION
getDerivationKind(org.eclipse.emf.ecore.EDataType)
,
Constant Field Valuesstatic final int LIST_DERIVATION
getDerivationKind(org.eclipse.emf.ecore.EDataType)
,
Constant Field Valuesstatic final int UNION_DERIVATION
getDerivationKind(org.eclipse.emf.ecore.EDataType)
,
Constant Field Valuesstatic final java.lang.String[] DERIVATION_KINDS
getDerivationKind(org.eclipse.emf.ecore.EDataType)
static final int UNSPECIFIED_PROCESSING
getProcessingKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setProcessingKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int STRICT_PROCESSING
getProcessingKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setProcessingKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int LAX_PROCESSING
getProcessingKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setProcessingKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final int SKIP_PROCESSING
getProcessingKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setProcessingKind(org.eclipse.emf.ecore.EStructuralFeature, int)
,
Constant Field Valuesstatic final java.lang.String[] PROCESSING_KINDS
getProcessingKind(org.eclipse.emf.ecore.EStructuralFeature)
,
setProcessingKind(org.eclipse.emf.ecore.EStructuralFeature, int)
static final int UNSPECIFIED_WHITE_SPACE
getWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType)
,
setWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType, int)
,
Constant Field Valuesstatic final int PRESERVE_WHITE_SPACE
getWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType)
,
setWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType, int)
,
Constant Field Valuesstatic final int REPLACE_WHITE_SPACE
getWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType)
,
setWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType, int)
,
Constant Field Valuesstatic final int COLLAPSE_WHITE_SPACE
getWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType)
,
setWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType, int)
,
Constant Field Valuesstatic final java.lang.String[] WHITE_SPACE_KINDS
getWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType)
,
setWhiteSpaceFacet(org.eclipse.emf.ecore.EDataType, int)
static final ExtendedMetaData INSTANCE
EPackage.Registry.INSTANCE
.
Method Detail |
---|
EPackage getPackage(java.lang.String namespace)
void putPackage(java.lang.String namespace, EPackage ePackage)
EClass getDocumentRoot(EPackage ePackage)
void setDocumentRoot(EClass eClass)
boolean isDocumentRoot(EClass eClass)
EReference getXMLNSPrefixMapFeature(EClass eClass)
EReference getXSISchemaLocationMapFeature(EClass eClass)
boolean isQualified(EPackage ePackage)
details key: "qualified"
void setQualified(EPackage ePackage, boolean isQualified)
details key: "qualified"
java.lang.String getNamespace(EPackage ePackage)
details key: "namespace"
java.lang.String getNamespace(EClassifier eClassifier)
java.lang.String getNamespace(EStructuralFeature eStructuralFeature)
void setNamespace(EStructuralFeature eStructuralFeature, java.lang.String namespace)
java.lang.String getName(EClassifier eClassifier)
details key: "name"
void setName(EClassifier eClassifier, java.lang.String name)
details key: "name"
boolean isAnonymous(EClassifier eClassifier)
java.lang.String getName(EStructuralFeature eStructuralFeature)
details key: "name"
void setName(EStructuralFeature eStructuralFeature, java.lang.String name)
details key: "name"
EClassifier getType(java.lang.String namespace, java.lang.String name)
EStructuralFeature getAttribute(java.lang.String namespace, java.lang.String name)
EStructuralFeature getElement(java.lang.String namespace, java.lang.String name)
EClassifier getType(EPackage ePackage, java.lang.String name)
EStructuralFeature getAttribute(EClass eClass, java.lang.String namespace, java.lang.String name)
affiliated
with a feature in the class.
EStructuralFeature getElement(EClass eClass, java.lang.String namespace, java.lang.String name)
affiliated
with a feature in the class.
EStructuralFeature getSimpleFeature(EClass eClass)
EAttribute getMixedFeature(EClass eClass)
int getFeatureKind(EStructuralFeature eStructuralFeature)
details key: "kind"
UNSPECIFIED_FEATURE
,
SIMPLE_FEATURE
,
ATTRIBUTE_FEATURE
,
ATTRIBUTE_WILDCARD_FEATURE
,
ELEMENT_FEATURE
,
ELEMENT_WILDCARD_FEATURE
,
GROUP_FEATURE
void setFeatureKind(EStructuralFeature eStructuralFeature, int kind)
details key: "kind"
UNSPECIFIED_FEATURE
,
SIMPLE_FEATURE
,
ATTRIBUTE_FEATURE
,
ATTRIBUTE_WILDCARD_FEATURE
,
ELEMENT_FEATURE
,
ELEMENT_WILDCARD_FEATURE
,
GROUP_FEATURE
int getContentKind(EClass eClass)
details key: "kind"
UNSPECIFIED_CONTENT
,
EMPTY_CONTENT
,
SIMPLE_CONTENT
,
MIXED_CONTENT
,
ELEMENT_ONLY_CONTENT
void setContentKind(EClass eClass, int kind)
details key: "kind"
UNSPECIFIED_CONTENT
,
EMPTY_CONTENT
,
SIMPLE_CONTENT
,
MIXED_CONTENT
,
ELEMENT_ONLY_CONTENT
int getDerivationKind(EDataType eDataType)
UNSPECIFIED_DERIVATION
,
RESTRICTION_DERIVATION
,
LIST_DERIVATION
,
UNION_DERIVATION
EDataType getBaseType(EDataType eDataType)
details key: "baseType"
void setBaseType(EDataType eDataType, EDataType baseType)
details key: "baseType"
EDataType getItemType(EDataType eDataType)
details key: "itemType"
void setItemType(EDataType eDataType, EDataType itemType)
details key: "itemType"
java.util.List<EDataType> getMemberTypes(EDataType eDataType)
details key: "memberTypes"
void setMemberTypes(EDataType eDataType, java.util.List<EDataType> memberTypes)
details key: "memberTypes"
java.util.List<EStructuralFeature> getAllAttributes(EClass eClass)
java.util.List<EStructuralFeature> getAllElements(EClass eClass)
java.util.List<EStructuralFeature> getAttributes(EClass eClass)
java.util.List<EStructuralFeature> getElements(EClass eClass)
boolean matches(java.util.List<java.lang.String> wildcards, java.lang.String namespace)
boolean matches(java.lang.String wildcard, java.lang.String namespace)
java.util.List<java.lang.String> getWildcards(EStructuralFeature eStructuralFeature)
details key: "wildcards"
void setWildcards(EStructuralFeature eStructuralFeature, java.util.List<java.lang.String> wildcards)
details key: "wildcards"
int getProcessingKind(EStructuralFeature eStructuralFeature)
details key: "processing"
UNSPECIFIED_PROCESSING
,
STRICT_PROCESSING
,
LAX_PROCESSING
,
SKIP_PROCESSING
void setProcessingKind(EStructuralFeature eStructuralFeature, int processingKind)
details key: "processing"
UNSPECIFIED_PROCESSING
,
STRICT_PROCESSING
,
LAX_PROCESSING
,
SKIP_PROCESSING
EStructuralFeature getAffiliation(EStructuralFeature eStructuralFeature)
details key: "affiliation"
void setAffiliation(EStructuralFeature eStructuralFeature, EStructuralFeature affiliation)
details key: "affiliation"
EStructuralFeature getGroup(EStructuralFeature eStructuralFeature)
details key: "group"
void setGroup(EStructuralFeature eStructuralFeature, EStructuralFeature group)
details key: "group"
EStructuralFeature getAffiliation(EClass eClass, EStructuralFeature eStructuralFeature)
EStructuralFeature getAttributeWildcardAffiliation(EClass eClass, java.lang.String namespace, java.lang.String name)
EStructuralFeature getElementWildcardAffiliation(EClass eClass, java.lang.String namespace, java.lang.String name)
int getWhiteSpaceFacet(EDataType eDataType)
details key: "whiteSpace"
UNSPECIFIED_WHITE_SPACE
,
PRESERVE_WHITE_SPACE
,
REPLACE_WHITE_SPACE
,
COLLAPSE_WHITE_SPACE
void setWhiteSpaceFacet(EDataType eDataType, int whiteSpace)
details key: "whiteSpace"
UNSPECIFIED_WHITE_SPACE
,
PRESERVE_WHITE_SPACE
,
REPLACE_WHITE_SPACE
,
COLLAPSE_WHITE_SPACE
java.util.List<java.lang.String> getEnumerationFacet(EDataType eDataType)
details key: "enumeration"
void setEnumerationFacet(EDataType eDataType, java.util.List<java.lang.String> literals)
details key: "enumeration"
java.util.List<java.lang.String> getPatternFacet(EDataType eDataType)
details key: "pattern"
void setPatternFacet(EDataType eDataType, java.util.List<java.lang.String> pattern)
details key: "pattern"
int getTotalDigitsFacet(EDataType eDataType)
details key: "totalDigits"
void setTotalDigitsFacet(EDataType eDataType, int digits)
details key: "totalDigits"
int getFractionDigitsFacet(EDataType eDataType)
details key: "fractionDigits"
void setFractionDigitsFacet(EDataType eDataType, int digits)
details key: "fractionDigits"
int getLengthFacet(EDataType eDataType)
details key: "length"
void setLengthFacet(EDataType eDataType, int length)
details key: "length"
int getMinLengthFacet(EDataType eDataType)
details key: "minLength"
void setMinLengthFacet(EDataType eDataType, int length)
details key: "minLength"
int getMaxLengthFacet(EDataType eDataType)
details key: "maxLength"
void setMaxLengthFacet(EDataType eDataType, int length)
details key: "maxLength"
java.lang.String getMinExclusiveFacet(EDataType eDataType)
details key: "minExclusive"
void setMinExclusiveFacet(EDataType eDataType, java.lang.String literal)
details key: "minExclusive"
java.lang.String getMaxExclusiveFacet(EDataType eDataType)
details key: "maxExclusive"
void setMaxExclusiveFacet(EDataType eDataType, java.lang.String literal)
details key: "maxExclusive"
java.lang.String getMinInclusiveFacet(EDataType eDataType)
details key: "minInclusive"
void setMinInclusiveFacet(EDataType eDataType, java.lang.String literal)
details key: "minInclusive"
java.lang.String getMaxInclusiveFacet(EDataType eDataType)
details key: "maxInclusive"
void setMaxInclusiveFacet(EDataType eDataType, java.lang.String literal)
details key: "maxInclusive"
EPackage demandPackage(java.lang.String namespace)
EClassifier demandType(java.lang.String namespace, java.lang.String name)
EStructuralFeature demandFeature(java.lang.String namespace, java.lang.String name, boolean isElement)
EStructuralFeature demandFeature(java.lang.String namespace, java.lang.String name, boolean isElement, boolean isReference)
java.util.Collection<EPackage> demandedPackages()
|
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 |