java.lang.Object
org.apache.jena.ext.xerces.impl.dv.xs.XSSimpleTypeDecl
- All Implemented Interfaces:
XSSimpleType,XSObject,XSSimpleTypeDefinition,XSTypeDefinition
@xerces.internal
- Version:
- $Id: XSSimpleTypeDecl.java 1026362 2010-10-22 15:15:18Z sandygao $
- Author:
- Sandy Gao, IBM, Neeraj Bajaj, Sun Microsystems, inc.
-
Field Summary
Fields inherited from interface org.apache.jena.ext.xerces.impl.dv.XSSimpleType
PRIMITIVE_ANYSIMPLETYPE, PRIMITIVE_ANYURI, PRIMITIVE_BASE64BINARY, PRIMITIVE_BOOLEAN, PRIMITIVE_DATE, PRIMITIVE_DATETIME, PRIMITIVE_DECIMAL, PRIMITIVE_DOUBLE, PRIMITIVE_DURATION, PRIMITIVE_FLOAT, PRIMITIVE_GDAY, PRIMITIVE_GMONTH, PRIMITIVE_GMONTHDAY, PRIMITIVE_GYEAR, PRIMITIVE_GYEARMONTH, PRIMITIVE_HEXBINARY, PRIMITIVE_NOTATION, PRIMITIVE_PRECISIONDECIMAL, PRIMITIVE_STRING, PRIMITIVE_TIME, WS_COLLAPSE, WS_PRESERVE, WS_REPLACEFields inherited from interface org.apache.jena.ext.xerces.xs.XSSimpleTypeDefinition
FACET_MAXEXCLUSIVE, FACET_MAXINCLUSIVE, FACET_MINEXCLUSIVE, FACET_MININCLUSIVE, FACET_NONE, FACET_PATTERN, FACET_WHITESPACE, ORDERED_FALSE, ORDERED_PARTIAL, ORDERED_TOTAL, VARIETY_ABSENT, VARIETY_ATOMIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription{base type definition}: either a simple type definition or a complex type definition.getName()The name of typeNCName, as defined in XML Namespaces, of this declaration specified in the{name}property of the component ornullif the definition of this component does not have a{name}property.The [target namespace] of this object, ornullif it is unspecified.booleanCheck whether two actual values are equal.static StringtoString()validate(String content, ValidatedInfo validatedInfo) validate a value, and return the compiled formvoidvalidate(ValidatedInfo validatedInfo) validate an actual value against this DV
-
Constructor Details
-
XSSimpleTypeDecl
public XSSimpleTypeDecl()
-
-
Method Details
-
getName
Description copied from interface:XSObjectThe name of typeNCName, as defined in XML Namespaces, of this declaration specified in the{name}property of the component ornullif the definition of this component does not have a{name}property. For anonymous types, the processor must construct and expose an anonymous type name that is distinct from the name of every named type and the name of every other anonymous type. -
getNamespace
Description copied from interface:XSObjectThe [target namespace] of this object, ornullif it is unspecified.- Specified by:
getNamespacein interfaceXSObject
-
getBaseType
Description copied from interface:XSTypeDefinition{base type definition}: either a simple type definition or a complex type definition.- Specified by:
getBaseTypein interfaceXSTypeDefinition
-
validate
public Object validate(String content, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException validate a value, and return the compiled form- Specified by:
validatein interfaceXSSimpleType- Parameters:
content- the string value that needs to be validatedvalidatedInfo- used to store validation result- Returns:
- the actual value (QName, Boolean) of the string value
- Throws:
InvalidDatatypeValueException
-
validate
validate an actual value against this DV- Specified by:
validatein interfaceXSSimpleType- Parameters:
validatedInfo- used to provide the actual value and member types- Throws:
InvalidDatatypeValueException- exception for invalid values.
-
isEqual
Description copied from interface:XSSimpleTypeCheck whether two actual values are equal.- Specified by:
isEqualin interfaceXSSimpleType- Parameters:
value1- the first valuevalue2- the second value- Returns:
- true if the two value are equal
-
normalize
-
toString
-