@DOMObjectAttribute @DOMNameAttribute(name="TypeInfo") public class TypeInfo extends DOMObject
The TypeInfo represents a type referenced from Element or Attr nodes, specified in the schemas associated with the document.
Modifier and Type | Field and Description |
---|---|
static long |
DERIVATION_EXTENSION
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by extension.
|
static long |
DERIVATION_LIST
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the list.
|
static long |
DERIVATION_RESTRICTION
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by restriction if complex types are involved, or a restriction if simple types are involved.
|
static long |
DERIVATION_UNION
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the union if simple types are involved.
|
PropertyChanged
Constructor and Description |
---|
TypeInfo(Node node)
Initializes a new instance of the
TypeInfo class. |
Modifier and Type | Method and Description |
---|---|
String |
getTypeName()
The name of a type declared for the associated element or attribute, or null if unknown.
|
String |
getTypeNamespace()
Gets the type namespace.The namespace of the type declared for the associated element or attribute or null if the element does not have declaration or if no namespace information is available.
|
boolean |
isDerivedFrom(String typeNamespaceArg,
String typeNameArg,
long derivationMethod)
This method returns if there is a derivation between the reference type definition, i.e. the TypeInfo on which the method is being called, and the other type definition, i.e. the one passed as parameters.
|
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
@DOMNameAttribute(name="DERIVATION_RESTRICTION") public static final long DERIVATION_RESTRICTION
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by restriction if complex types are involved, or a restriction if simple types are involved.
@DOMNameAttribute(name="DERIVATION_EXTENSION") public static final long DERIVATION_EXTENSION
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the derivation by extension.
@DOMNameAttribute(name="DERIVATION_UNION") public static final long DERIVATION_UNION
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the union if simple types are involved.
@DOMNameAttribute(name="DERIVATION_LIST") public static final long DERIVATION_LIST
If the document's schema is an XML Schema [XML Schema Part 1], this constant represents the list.
@DOMNameAttribute(name="typeName") public String getTypeName()
The name of a type declared for the associated element or attribute, or null if unknown.
Value: The name of the type.@DOMNameAttribute(name="typeNamespace") public String getTypeNamespace()
Gets the type namespace.The namespace of the type declared for the associated element or attribute or null if the element does not have declaration or if no namespace information is available.
Value: The type namespace.@DOMNameAttribute(name="ProcessingInstruction") public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, long derivationMethod)
This method returns if there is a derivation between the reference type definition, i.e. the TypeInfo on which the method is being called, and the other type definition, i.e. the one passed as parameters.
typeNamespaceArg
- the namespace of the other type definitiontypeNameArg
- the name of the other type definition.derivationMethod
- the type of derivation and conditions applied between two types, as described in the list of constants provided in this interface.