org.apache.xerces.impl.validation.datatypes
Class BinaryDatatypeValidator
java.lang.Object
|
+--org.apache.xerces.impl.validation.datatypes.AbstractDatatypeValidator
|
+--org.apache.xerces.impl.validation.datatypes.BinaryDatatypeValidator
- public class BinaryDatatypeValidator
- extends AbstractDatatypeValidator
binaryValidator validates that XML content is a W3C binary type.
- Version:
- $Id: BinaryDatatypeValidator.java,v 1.1.2.2 2000/10/17 02:01:03 jeffreyr Exp $
Method Summary |
java.lang.Object |
clone()
Returns a copy of this object. |
int |
compare(java.lang.String content1,
java.lang.String content2)
Compare two Binary Datatype Lexical values. |
void |
validate(java.lang.String content,
java.lang.Object state)
validate that a string is a W3C binary type
validate returns true or false depending on whether the string content is an
instance of the W3C binary datatype |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BinaryDatatypeValidator
public BinaryDatatypeValidator()
throws InvalidDatatypeFacetException
BinaryDatatypeValidator
public BinaryDatatypeValidator(DatatypeValidator base,
java.util.Hashtable facets,
boolean derivedByList)
throws InvalidDatatypeFacetException
validate
public void validate(java.lang.String content,
java.lang.Object state)
throws InvalidDatatypeValueException
- validate that a string is a W3C binary type
validate returns true or false depending on whether the string content is an
instance of the W3C binary datatype
- Overrides:
- validate in class AbstractDatatypeValidator
- Parameters:
content
- A string containing the content to be validated- Throws:
- throws - InvalidDatatypeException if the content is
not a W3C binary type
compare
public int compare(java.lang.String content1,
java.lang.String content2)
- Compare two Binary Datatype Lexical values.
- Overrides:
- compare in class AbstractDatatypeValidator
- Parameters:
content1
- content2
- - Returns:
-
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.