|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.schema.impl.SchemaComplexTypeImpl
com.jaxfront.core.schema.impl.SchemaSimpleTypeImpl
public class SchemaSimpleTypeImpl
Represent a simple XML schema type. The XSD constants from the W3C XML Schema specification are defined in the XSD Oracle Parser (oracle.xml.parser.schema.XSDTypeConstants)
| Field Summary |
|---|
| Fields inherited from interface com.jaxfront.core.schema.SchemaSimpleType |
|---|
WHITESPACE_COLLAPSE, WHITESPACE_PRESERVE, WHITESPACE_REPLACE |
| Fields inherited from interface com.jaxfront.core.schema.SchemaType |
|---|
NO_NAME |
| Constructor Summary | |
|---|---|
SchemaSimpleTypeImpl(java.lang.String nameSpace,
java.lang.String name,
org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
Creates a SchemaSimpleType based on a oracle XSDSimpleType, a XMLSchema and a SchemaNode. |
|
SchemaSimpleTypeImpl(org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
Creates a SchemaSimpleType based on a oracle XSDSimpleType, a XMLSchema and a SchemaNode. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseName()
Returns the base name (if type is an extension or restriction) of the inherited type. |
java.lang.String[] |
getChoices()
Returns the possible choice values (from the facet 'enumeration') defined in a XML Schema. |
java.util.Hashtable |
getEnumerationAnnotation(java.lang.String enumeration)
Return an annotation for an enumeration entry for the passed value or null if none has been defined in the XSD. |
int |
getFractionDigits()
|
double |
getMaxExclValue()
|
double |
getMaxInclValue()
|
long |
getMaxLength()
Returns the required maximum length. |
double |
getMinExclValue()
|
double |
getMinInclValue()
|
long |
getMinLength()
Returns the required minimum length. |
int |
getPrimitiveDataType()
Returns the index of the primitive data type. e.q. |
java.lang.String |
getRegularExpression()
Returns the regular expression if any. |
int |
getTotalDigits()
|
short |
getWhitespace()
|
boolean |
hasRegularExpression()
Returns true if a regular expression is defined for this type. |
boolean |
isAnyType()
Returns true if the content of this type can be of any type |
boolean |
isAttribute()
Returns true if this type is an attribute. |
boolean |
isBoolean()
Returns if the primitive data type of this type is Boolean. |
boolean |
isChoice()
Returns true if this schema type is a choice. |
boolean |
isDate()
Returns if the primitive data type of this type is Date. |
boolean |
isDateTime()
Returns if the primitive data type of this type is DateTime. |
boolean |
isDouble()
Returns tru if the primitive data type of this type is a float |
boolean |
isDuration()
Returns if the primitive data type of this type is Duration. |
boolean |
isFloat()
Returns tru if the primitive data type of this type is a float |
boolean |
isFloatingNumber()
|
boolean |
isGroup()
Returns true if this schema type is a group. |
boolean |
isID()
Returns true if the primitive data type is an ID. |
boolean |
isNumber()
Returns if the primitive data type of this type is a number like Float, Double or Decimal. |
boolean |
isSimple()
Returns true if this schema type is simple. |
boolean |
isString()
Returns if the primitive data type of this type is String. |
boolean |
isTime()
Returns if the primitive data type of this type is Date. |
void |
setFractionDigits(int fractionDigits)
|
void |
setMaxExclValue(double maxExclValue)
|
void |
setMaxInclValue(double maxInclValue)
|
void |
setMaxLength(long maxLength)
|
void |
setMinExclValue(double minExclValue)
|
void |
setMinInclValue(double minInclValue)
|
void |
setMinLength(long minLength)
|
void |
setRegularExpression(java.lang.String regularExpression)
|
void |
setTotalDigits(int totalDigits)
|
void |
setWhitespace(short whitespace)
|
void |
validate(SimpleType source,
java.lang.String value)
Validates a string against the defined facets in the XML Schema. |
| Methods inherited from class com.jaxfront.core.schema.impl.SchemaComplexTypeImpl |
|---|
addRecursiveElement, countSubNodes, createQName, getAttributeSet, getChild, getChoiceMaxOccurs, getChoiceMinOccurs, getElementSet, getName, getNamespace, getNamespacePrefix, getParserXSDNode, getQName, getRecursiveElementNames, getRecursiveElements, getRefName, getSchemaElement, getSimpleContent, getType, hasBeenAnalysed, isAbstract, isAnonymous, isEmptyComplexType, isGlobal, isMixedContent, isRecursive, release, setIsSimpleContent, setRecursive, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jaxfront.core.schema.SchemaType |
|---|
addRecursiveElement, countSubNodes, getChoiceMaxOccurs, getChoiceMinOccurs, getName, getNamespacePrefix, getParserXSDNode, getQName, getRecursiveElementNames, getRecursiveElements, getSchemaElement, getType, hasBeenAnalysed, isAbstract, isEmptyComplexType, isGlobal, isMixedContent, isRecursive, release, setIsSimpleContent, setRecursive, setType |
| Methods inherited from interface com.jaxfront.core.schema.QName |
|---|
getNamespace, getRefName |
| Constructor Detail |
|---|
public SchemaSimpleTypeImpl(java.lang.String nameSpace,
java.lang.String name,
org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
node - an oracle XSD Node (from oracle schema parser)schema - an XML Schemaelement - an XML Schema Element
public SchemaSimpleTypeImpl(org.apache.xerces.xs.XSTypeDefinition node,
XMLSchema schema,
SchemaNode element)
node - an oracle XSD Node (from oracle schema parser)schema - an XML Schemaelement - an XML Schema Element| Method Detail |
|---|
public java.lang.String getBaseName()
getBaseName in interface SchemaTypegetBaseName in class SchemaComplexTypeImplpublic java.lang.String[] getChoices()
getChoices in interface SchemaSimpleTypepublic java.util.Hashtable getEnumerationAnnotation(java.lang.String enumeration)
SchemaSimpleType
getEnumerationAnnotation in interface SchemaSimpleTypepublic int getFractionDigits()
getFractionDigits in interface SchemaSimpleTypepublic double getMaxExclValue()
getMaxExclValue in interface SchemaSimpleTypepublic double getMaxInclValue()
getMaxInclValue in interface SchemaSimpleTypepublic long getMaxLength()
SchemaSimpleType
getMaxLength in interface SchemaSimpleTypeSchemaSimpleType.getMinLength()public double getMinExclValue()
getMinExclValue in interface SchemaSimpleTypepublic double getMinInclValue()
getMinInclValue in interface SchemaSimpleTypepublic long getMinLength()
SchemaSimpleType
getMinLength in interface SchemaSimpleTypeSchemaSimpleType.getMinLength()public int getPrimitiveDataType()
getPrimitiveDataType in interface SchemaSimpleTypepublic java.lang.String getRegularExpression()
SchemaSimpleType
getRegularExpression in interface SchemaSimpleTypeSchemaSimpleType.getRegularExpression()public int getTotalDigits()
getTotalDigits in interface SchemaSimpleTypepublic short getWhitespace()
getWhitespace in interface SchemaSimpleTypepublic boolean hasRegularExpression()
SchemaSimpleType
hasRegularExpression in interface SchemaSimpleTypepublic boolean isAnyType()
SchemaSimpleType
isAnyType in interface SchemaSimpleTypeSchemaSimpleType.isAnyType()public boolean isAttribute()
isAttribute in interface SchemaSimpleTypepublic boolean isBoolean()
isBoolean in interface SchemaSimpleTypepublic boolean isChoice()
isChoice in interface SchemaTypeisChoice in class SchemaComplexTypeImplpublic boolean isDate()
SchemaSimpleType
isDate in interface SchemaSimpleTypeSchemaSimpleType.isDate()public boolean isDateTime()
SchemaSimpleType
isDateTime in interface SchemaSimpleTypeSchemaSimpleType.isDateTime()public boolean isDouble()
isDouble in interface SchemaSimpleTypepublic boolean isDuration()
isDuration in interface SchemaSimpleTypepublic boolean isFloat()
isFloat in interface SchemaSimpleTypepublic boolean isFloatingNumber()
isFloatingNumber in interface SchemaSimpleTypepublic boolean isGroup()
isGroup in interface SchemaTypeisGroup in class SchemaComplexTypeImplpublic boolean isID()
isID in interface SchemaSimpleTypepublic boolean isNumber()
isNumber in interface SchemaSimpleTypepublic boolean isSimple()
isSimple in interface SchemaTypeisSimple in class SchemaComplexTypeImplpublic boolean isString()
isString in interface SchemaSimpleTypepublic boolean isTime()
isTime in interface SchemaSimpleTypepublic void setFractionDigits(int fractionDigits)
public void setMaxExclValue(double maxExclValue)
public void setMaxInclValue(double maxInclValue)
public void setMaxLength(long maxLength)
public void setMinExclValue(double minExclValue)
public void setMinInclValue(double minInclValue)
public void setMinLength(long minLength)
public void setRegularExpression(java.lang.String regularExpression)
public void setTotalDigits(int totalDigits)
public void setWhitespace(short whitespace)
public void validate(SimpleType source,
java.lang.String value)
throws ValidationException
validate in interface SchemaSimpleTypeValidationException - thrown if the submitted string is not valid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||