|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.xml.schema.XSDatatypeManager
public class XSDatatypeManager
Provides Map-like interface to XSdatatypes - including built-ins and those datatypes defined by a Schema - used to validate element values within a schema-based document. XSdatatypes validate a value against a defined datatype, whether it is built-in or derived. Built-in data types are supplied by Sun's XSDatatype library, data types specified by a particular schema are derived by extending the built-in types (see deriveType()).
| Constructor Summary | |
|---|---|
XSDatatypeManager()
Constructor for the XSDatatypeManager object |
|
XSDatatypeManager(GlobalDefMap globalDefMap)
Constructor for the XSDatatypeManager object |
|
| Method Summary | |
|---|---|
void |
addDerivedType(com.sun.msv.datatype.xsd.XSDatatype dt)
Adds a derived XSDatatype to the map of derived types |
boolean |
checkValid(String typeName,
String value)
Checks a value against it's datatype. |
boolean |
checkValid(com.sun.msv.datatype.xsd.XSDatatype dt,
String v)
validates a String value against an XSDatatype. |
com.sun.msv.datatype.xsd.XSDatatype |
deriveByUnion(SimpleType def)
Description of the Method |
void |
destroy()
Description of the Method |
Map |
getDerivedTypes()
|
String |
getSchemaNSPrefix()
|
com.sun.msv.datatype.xsd.XSDatatype |
getTypeByName(String typeName)
Gets a XSDatatype class used to validate a value against a datatype declared or defined in an XML Schema. |
com.sun.msv.datatype.xsd.XSDatatype |
getTypeByNameOLD(String typeName)
|
static void |
main(String[] args)
The main program for the XSDatatypeManager class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XSDatatypeManager()
public XSDatatypeManager(GlobalDefMap globalDefMap)
globalDefMap - Description of the Parameter| Method Detail |
|---|
public Map getDerivedTypes()
public void addDerivedType(com.sun.msv.datatype.xsd.XSDatatype dt)
dt - The XSDatatype to be addedpublic String getSchemaNSPrefix()
public com.sun.msv.datatype.xsd.XSDatatype getTypeByName(String typeName)
typeName - XSDatatype name
public com.sun.msv.datatype.xsd.XSDatatype getTypeByNameOLD(String typeName)
public boolean checkValid(String typeName,
String value)
throws Exception
date values are intercepted and handled by MetadataUtils.parseUnionDateType(String)
typeName - Description of the Parametervalue - Description of the Parameter
Exception - Description of the Exception
public boolean checkValid(com.sun.msv.datatype.xsd.XSDatatype dt,
String v)
throws Exception
dt - Description of the Parameterv - Description of the Parameter
Exception - Description of the Exception
public com.sun.msv.datatype.xsd.XSDatatype deriveByUnion(SimpleType def)
throws Exception
def - Description of the Parameter
Exception - Description of the Exception
public static void main(String[] args)
throws Exception
args - The command line arguments
Exception - Description of the Exceptionpublic void destroy()
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||