TypeInfo


TypeInfo org.w3c.dom

Java 5.0

This Level 3 interface represents information about the type of an Element or Attr node. Obtain a TypeInfo object by calling the getSchemaTypeInfo( ) method of an Element or Attr . Note that TypeInfo information is only available if the document has been validated against a W3C XML Schema.

The methods of TypeInfo return the name and namespace of the element or attribute type. isDerivedFrom( ) determines if the type is a derivative of another named type. The constants defined by the interface specify different derivation techniques for types.

See also java.xml.validation.TypeInfoProvider .

 public interface  TypeInfo  {  // Public Constants  public static final int  DERIVATION_EXTENSION  ;  =2  public static final int  DERIVATION_LIST  ;  =8  public static final int  DERIVATION_RESTRICTION  ;  =1  public static final int  DERIVATION_UNION  ;  =4   // Public Instance Methods  String  getTypeName  ( );        String  getTypeNamespace  ( );        boolean  isDerivedFrom  (String  typeNamespaceArg  , String  typeNameArg  , int  derivationMethod  );   } 

Returned By

javax.xml.validation.TypeInfoProvider.{getAttributeTypeInfo( ) , getElementTypeInfo( )} , Attr.getSchemaTypeInfo( ) , Element.getSchemaTypeInfo( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net