public abstract class XMLType extends XML
| Modifier | Constructor and Description |
|---|---|
protected |
XMLType(String name,
String xsdLocation)
Creates a new
XMLType instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Retrieves the description of this type.
|
protected Source |
getSource(String xsdLocation) |
protected boolean |
isValidValueImpl(String value)
Determines if the specified
String value is considered
valid for this type (implementation method). |
fromStringForOptional, fromStringForRequired, fromStringImpl, toString, toStringcheckValue, fromString, getName, getValueClass, isValidValue, toStringprotected XMLType(String name, String xsdLocation) throws IllegalArgumentException, Exception
XMLType instance. The name of the type
needs to be specified. The value class (see
Type.getValueClass()) is set to org.w3c.dom.Element.class.name - the name of the type, not null.xsdLocation - the location of the schema, can be absolute or relative URI, not null.IllegalArgumentException - if name == null || xsdLocation == null.PatternCompileException - if the specified pattern is considered invalid.Exceptionprotected final boolean isValidValueImpl(String value)
TypeString value is considered
valid for this type (implementation method).
This method is called from Type.isValidValue(String). When
called from that method, it is guaranteed that the argument is not
null.
Type returns
true.isValidValueImpl in class XMLvalue - the String value that should be checked for validity,
never null.true if and only if the specified String
value is valid, false otherwise.public String getDescription()
TypegetDescription in class XMLnull.See http://www.xins.org/.