|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.impl.dv.dtd.AbstractDatatypeValidator | +--org.apache.xerces.impl.dv.dtd.ENTITYDatatypeValidator
ENTITYDatatypeValidator implements the DatattypeValidator interface. This validator embodies the ENTITY attribute type from XML1.0 recommendation. The Value space of ENTITY is the set of all strings that match the NCName production and have been declared as an unparsed entity in a document type definition. The Lexical space of Entity is the set of all strings that match the NCName production. The value space of ENTITY is scoped to a specific instance document.
This is a statefull datatype validator and it needs access to a valid Grammar structure to being able to validate entities.
Grammar
,
org.apache.xerces.impl.validation.grammars.DTDGrammar
,
org.apache.xerces.impl.validation.grammars.SchemaGrammar
Fields inherited from class org.apache.xerces.impl.dv.dtd.AbstractDatatypeValidator |
fFacets |
Constructor Summary | |
ENTITYDatatypeValidator()
|
|
ENTITYDatatypeValidator(DatatypeValidator base,
java.util.Hashtable facets,
boolean derivedByList)
|
Method Summary | |
java.lang.Object |
clone()
Returns a copy of this object. |
int |
compare(java.lang.String content1,
java.lang.String content2)
REVISIT Compares two Datatype for order |
java.util.Hashtable |
getFacets()
getFacets |
java.lang.Object |
getInternalStateInformation()
A no-op method in this validator |
void |
initialize(java.lang.Object grammar)
Initializes internal Grammar reference This method is unique to ENTITYDatatypeValidator. |
void |
validate()
A no-op method in this Datatype |
void |
validate(java.lang.String content,
java.lang.Object state)
Checks that "content" string is valid datatype. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ENTITYDatatypeValidator() throws InvalidDatatypeFacetException
public ENTITYDatatypeValidator(DatatypeValidator base, java.util.Hashtable facets, boolean derivedByList) throws InvalidDatatypeFacetException
Method Detail |
public void validate(java.lang.String content, java.lang.Object state) throws InvalidDatatypeValueException
Checks that "content" string is valid datatype. If invalid a Datatype validation exception is thrown.
The following constrain is checked: ENTITY values must match an unparsed entity name that is declared in the schema.
content
- A string containing the content to be validatedstate
- org.apache.xerces.validators.datatype.InvalidDatatypeValueException
public void validate()
public void initialize(java.lang.Object grammar)
Initializes internal Grammar reference This method is unique to ENTITYDatatypeValidator.
This method should be called before calling the validate method
grammar
- public int compare(java.lang.String content1, java.lang.String content2)
public java.util.Hashtable getFacets()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public java.lang.Object getInternalStateInformation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |