|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-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
public class XSDSimpleType
This class represents Schema simpleType definitions
Field Summary | |
---|---|
static XSDSimpleType |
dayTimeDuration |
static XSDSimpleType |
untypedAtomic |
static XSDSimpleType |
yearMonthDuration |
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 int |
getBasicType(int btype) Gets the basic type from which this type was derived. |
static java.util.Hashtable |
getBuiltInDatatypes() Gets all built-in datatype |
int |
getBuiltInId() Gets the id of builtIn type from which this type was derived. |
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 |
java.lang.String |
getWSFacetValue() Get the value for the whitespace facet |
boolean |
hasFlag(int flag) Check proprety indicated by the flag |
boolean |
isAbstract() |
boolean |
isPrimitive() |
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 |
---|
getName, getNodeType, getOwnerSchema, getRefLocalname, isNodeType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.xml.parser.schema.XSDParticleNode |
---|
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs |
Field Detail |
---|
public static final XSDSimpleType yearMonthDuration
public static final XSDSimpleType dayTimeDuration
public static final XSDSimpleType untypedAtomic
Constructor Detail |
---|
public XSDSimpleType(int basic, java.lang.String tnm)
Method Detail |
---|
public boolean hasFlag(int flag)
flag
- - the flag to be checkpublic java.lang.String getTargetNS()
getTargetNS
in class XSDNode
public boolean isPrimitive()
public static XSDSimpleType getPrimitiveType(int itype)
int
- the primitive idpublic 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 static int getBasicType(int btype)
public int getBuiltInId()
public boolean isAbstract()
public XSDSimpleType getBase()
public java.lang.String getWSFacetValue()
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
facetName
- Name of the facet being setvalue
- Value of the facetXSDException
- if the facet is invalid
|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |