|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemaSimpleType
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.SchemaType |
---|
NO_NAME |
Method Summary | |
---|---|
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()
|
java.lang.String |
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 |
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 if the primitive data type of this type is a double. |
boolean |
isDuration()
Returns if the primitive data type of this type is Duration. |
boolean |
isFloat()
Returns if the primitive data type of this type is a float. |
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 |
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 |
validate(Type source,
java.lang.String value)
Validates a string against the defined facets in the XML Schema. |
Methods inherited from interface com.jaxfront.core.schema.SchemaType |
---|
addRecursiveElement, countSubNodes, getBaseName, getChoiceMaxOccurs, getChoiceMinOccurs, getName, getNamespacePrefix, getParserXSDNode, getQName, getRecursiveElementNames, getRecursiveElements, getSchemaElement, getType, hasBeenAnalysed, isAbstract, isChoice, isEmptyComplexType, isGlobal, isGroup, isMixedContent, isRecursive, isSimple, release, setIsSimpleContent, setRecursive, setType |
Methods inherited from interface com.jaxfront.core.schema.QName |
---|
getNamespace, getRefName |
Method Detail |
---|
java.lang.String[] getChoices()
int getPrimitiveDataType()
boolean isAttribute()
boolean isID()
void validate(Type source, java.lang.String value) throws ValidationException
ValidationException
- thrown if the submitted string is not validlong getMinLength()
long getMaxLength()
double getMinInclValue()
double getMaxInclValue()
double getMinExclValue()
double getMaxExclValue()
int getFractionDigits()
int getTotalDigits()
java.lang.String getWhitespace()
boolean isNumber()
boolean isFloat()
boolean isBoolean()
boolean isDate()
boolean isDateTime()
boolean isDuration()
boolean isString()
boolean isTime()
boolean hasRegularExpression()
java.lang.String getRegularExpression()
boolean isAnyType()
java.util.Hashtable getEnumerationAnnotation(java.lang.String enumeration)
boolean isDouble()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |