|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.xml.parser.schema.XSDNode | +--oracle.xml.parser.schema.XSDSimpleType
This class represents Schema simpleType definitions
Field Summary |
Constructor Summary | |
XSDSimpleType(int basic, java.lang.String tnm) Deprecated. |
Method Summary | |
int |
compareValues(java.lang.String str1, java.lang.String str2) |
static XSDSimpleType |
derivedFrom(XSDSimpleType source, java.lang.String nm, java.lang.String var) Deprecated. |
XSDSimpleType |
getBase() |
int |
getBasicType() Gets the basic type from which this type was derived. |
static java.util.Hashtable |
getBuiltInDatatypes() Gets all built-in datatype |
XSDConstrainingFacet[] |
getFacets() Get the facets |
static XSDSimpleType |
getPrimitiveType(int itype) Get primitive type |
java.lang.String |
getTargetNS() Get target namespace |
java.lang.String |
getVariety() Get the variety of the type |
boolean |
isAbstract() |
void |
setFacet(java.lang.String fname, java.lang.String value) Sets a facet for restriction |
void |
validateValue(java.lang.String val) Validates the string value with the facets defined for this type |
Methods inherited from class oracle.xml.parser.schema.XSDNode |
equals, getName, getNodeType, getRefLocalname, hashCode, isNodeType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.xml.parser.schema.XSDParticleNode |
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs |
Constructor Detail |
public XSDSimpleType(int basic, java.lang.String tnm)
Method Detail |
public java.lang.String getTargetNS()
getTargetNS
in class XSDNode
public static XSDSimpleType getPrimitiveType(int itype)
public static XSDSimpleType derivedFrom(XSDSimpleType source, java.lang.String nm, java.lang.String var) throws XSDException
source
- XSDSimpleType The base typenm
- String The name of the new typevar
- String The method of derivationXSDException
- if new type can not be created.public int getBasicType()
public boolean isAbstract()
public XSDSimpleType getBase()
public XSDConstrainingFacet[] getFacets()
public java.lang.String getVariety()
public static java.util.Hashtable getBuiltInDatatypes() throws XSDException
XSDException
public void validateValue(java.lang.String val) throws java.lang.Exception
val
- value to be validatedXSDException
- if the value is not validjava.lang.Exception
public int compareValues(java.lang.String str1, java.lang.String str2)
public void setFacet(java.lang.String fname, java.lang.String value) throws XSDException
value
- Value of the facetXSDException
- if the facet is invalid
|
Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |