org.apache.xerces.validators.datatype
Class URIReferenceDatatypeValidator
java.lang.Object
|
+--org.apache.xerces.validators.datatype.AbstractDatatypeValidator
|
+--org.apache.xerces.validators.datatype.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.10 2000/10/17 00:52:40 jeffreyr Exp $
- Author:
- Ted Leung, Jeffrey Rodriguez, Mark Swinkles - List Validation refactoring
- 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()
returns the datatype facet if any is set as a
Hashtable |
java.lang.Object |
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 java.lang.Object 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
- returns the datatype facet if any is set as a
Hashtable
- 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 AbstractDatatypeValidator
Copyright © 1999-2000 Apache XML Project. All Rights Reserved.