org.apache.xerces.impl.validation.datatypes
Class URIReferenceDatatypeValidator
java.lang.Object
|
+--org.apache.xerces.impl.validation.datatypes.AbstractDatatypeValidator
|
+--org.apache.xerces.impl.validation.datatypes.URIReferenceDatatypeValidator
- public class URIReferenceDatatypeValidator
- extends AbstractDatatypeValidator
URIValidator validates that XML content is a W3C uri type,
according to RFC 2396
- Version:
- $Id: URIReferenceDatatypeValidator.java,v 1.1.2.2 2000/10/17 02:01:05 jeffreyr Exp $
- Author:
- Ted Leung, Jeffrey Rodriguez
- See Also:
2396
,
Berners-Lee, et. al. RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax.. 1998 Available at: http://www.ietf.org/rfc/rfc2396.txt
Method Summary |
java.lang.Object |
clone()
Returns a copy of this object. |
int |
compare(java.lang.String content1,
java.lang.String content2)
Compares two URIReferences for equality. |
java.util.Hashtable |
getFacets()
getFacets |
void |
validate(java.lang.String content,
java.lang.Object state)
Validates content to conform to a URIReference
definition and to conform to the facets allowed
for this datatype. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
URIReferenceDatatypeValidator
public URIReferenceDatatypeValidator()
throws InvalidDatatypeFacetException
URIReferenceDatatypeValidator
public URIReferenceDatatypeValidator(DatatypeValidator base,
java.util.Hashtable facets,
boolean derivedByList)
throws InvalidDatatypeFacetException
validate
public void validate(java.lang.String content,
java.lang.Object state)
throws InvalidDatatypeValueException
- Validates content to conform to a URIReference
definition and to conform to the facets allowed
for this datatype.
- Overrides:
- validate in class AbstractDatatypeValidator
- Parameters:
content
- state
- - Returns:
-
- Throws:
- InvalidDatatypeValueException -
compare
public int compare(java.lang.String content1,
java.lang.String content2)
- Compares two URIReferences for equality.
This is not really well defined.
- Overrides:
- compare in class AbstractDatatypeValidator
- Parameters:
content1
- content2
- - Returns:
-
getFacets
public java.util.Hashtable getFacets()
- Description copied from class: AbstractDatatypeValidator
- getFacets
- Overrides:
- getFacets in class AbstractDatatypeValidator
- Returns:
- Returns a Hashtable containing the facet information
for this datatype.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Returns a copy of this object.
- Overrides:
- clone in class java.lang.Object
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.