Save This Page
Home » Xerces-J-src.2.9.1 » simpletype » [javadoc | source]
simpletype
public class: SimpleTypeUsage [javadoc | source]
java.lang.Object
   simpletype.SimpleTypeUsage
It demonstrates how to use the interfaces defined in 'org.apache.xerces.impl.dv' package for the purpose of 1. how to query property information of Simple Type Definition Schema Component. 2. how to get instance of SchemaDVFactory implementation. 3. how to get built-in type/s and create new types as derived by restriction, list or union, using factory methods of SchemaDVFactory. 4. how to use those simple type (built-in/created) to validate the values. This class is useful for any application which wants to use the simple type implementation directly as separate module.
Field Summary
static  SchemaDVFactory factory     
 XSFacets facets     
 short fPresentFacets     
 short fFixedFacets     
 short fFinalSet     
Constructor:
 public SimpleTypeUsage() 
Method from simpletype.SimpleTypeUsage Summary:
main,   printCardinality,   printFacets,   printFinal,   printOrdered,   printUsage,   printVariety,   querySimpleType,   validateString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from simpletype.SimpleTypeUsage Detail:
 public static  void main(String[] args) 
  void printCardinality(boolean isFinite) 
  void printFacets(short facets) 
  void printFinal(short finalSet) 
  void printOrdered(short ordered) 
 static  void printUsage() 
  void printVariety(short variety) 
 public  void querySimpleType(XSSimpleType simpleType) 
    this method shows how to query information about the different properties of 'Simple Type' definiton schema component. It prints the values of properties of 'SimpleType Definition Schema Component'.
 public ValidatedInfo validateString(String content,
    XSSimpleType simpleType) 
    this method shows how to validate the content against the given simple type.