hypercast.util
Class SchemaDefaultValueCalculator

java.lang.Object
  |
  +--hypercast.util.SchemaDefaultValueCalculator

public class SchemaDefaultValueCalculator
extends java.lang.Object

This class provides functions to create a Properties object from a schema which uses all possible Xpath string as entry and its default values as value.


Constructor Summary
SchemaDefaultValueCalculator()
          Constructor.
SchemaDefaultValueCalculator(java.lang.String schemafile)
          Constructor.
 
Method Summary
 java.util.Properties getDefaultValues()
          Build the Properties object for all default values of a schema file.
static java.util.Properties getDefaultValues(org.w3c.dom.Document schemaDoc)
          Build the Properties object for all default values of a schema file.
static java.util.Properties getDefaultValues(java.lang.String schemafile)
          Build the Properties object for all default values of a schema file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaDefaultValueCalculator

public SchemaDefaultValueCalculator(java.lang.String schemafile)
                             throws java.io.IOException,
                                    java.text.ParseException
Constructor.


SchemaDefaultValueCalculator

public SchemaDefaultValueCalculator()
                             throws java.io.IOException
Constructor.

Method Detail

getDefaultValues

public java.util.Properties getDefaultValues()
                                      throws java.io.IOException
Build the Properties object for all default values of a schema file.

java.io.IOException

getDefaultValues

public static java.util.Properties getDefaultValues(java.lang.String schemafile)
                                             throws java.io.FileNotFoundException,
                                                    java.text.ParseException,
                                                    java.io.IOException
Build the Properties object for all default values of a schema file.

java.io.FileNotFoundException
java.text.ParseException
java.io.IOException

getDefaultValues

public static java.util.Properties getDefaultValues(org.w3c.dom.Document schemaDoc)
Build the Properties object for all default values of a schema file.