Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xerces.dom3
Interface TypeInfo  view TypeInfo download TypeInfo.java


public interface TypeInfo

The TypeInfo interface represent a type referenced from Element or Attr nodes, specified in the schemas associated with the document. The type is a pair of a namespace URI and name properties, and depends on the document's schema.

If the document's schema is an XML DTD [XML 1.0], the values are computed as follows:

If the document's schema is an XML Schema [XML Schema Part 1] , the values are computed as follows using the post-schema-validation infoset contributions (also called PSVI contributions):

Note: Other schema languages are outside the scope of the W3C and therefore should define how to represent their type systems using TypeInfo.

See also the Document Object Model (DOM) Level 3 Core Specification.

Since:
DOM Level 3

Field Summary
static int DERIVATION_EXTENSION
          If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the derivation by extension if complex types are involved.
static int DERIVATION_LIST
          If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the list if simple types are involved.
static int 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 int 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.
 
Method Summary
 java.lang.String getTypeName()
          The name of a type declared for the associated element or attribute, or null if unknown.
 java.lang.String getTypeNamespace()
          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(java.lang.String typeNamespaceArg, java.lang.String typeNameArg, int derivationMethod)
          The method checks if this TypeInfo derives from the specified ancestor type.
 

Field Detail

DERIVATION_RESTRICTION

public static final int 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.

See Also:
Constant Field Values

DERIVATION_EXTENSION

public static final int DERIVATION_EXTENSION
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the derivation by extension if complex types are involved.

See Also:
Constant Field Values

DERIVATION_UNION

public static final int 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.

See Also:
Constant Field Values

DERIVATION_LIST

public static final int DERIVATION_LIST
If the document's schema is an XML Schema [XML Schema Part 1] , this constant represents the list if simple types are involved.

See Also:
Constant Field Values
Method Detail

getTypeName

public java.lang.String getTypeName()
The name of a type declared for the associated element or attribute, or null if unknown.


getTypeNamespace

public java.lang.String getTypeNamespace()
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.


isDerivedFrom

public boolean isDerivedFrom(java.lang.String typeNamespaceArg,
                             java.lang.String typeNameArg,
                             int derivationMethod)
The method checks if this TypeInfo derives from the specified ancestor type.