APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.dv.xs

public Class HexBinaryDV

extends TypeValidator
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeValueException, .ValidationContext, com.sun.org.apache.xerces.internal.impl.dv.util.ByteListImpl, .HexBin

Represent the schema type "hexBinary"
Authors
Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Inherited from com.sun.org.apache.xerces.internal.impl.dv.xs.TypeValidator:
EQUALGREATER_THANINDETERMINATELESS_THAN

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
public short
public int
Inherited from com.sun.org.apache.xerces.internal.impl.dv.xs.TypeValidator:
checkExtraRulescomparegetDigitgetFractionDigitsgetTotalDigitsisDigitisIdentical

Constructor Detail

HexBinaryDVback to summary
public HexBinaryDV()

Method Detail

getActualValueback to summary
public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException

Implements abstract com.sun.org.apache.xerces.internal.impl.dv.xs.TypeValidator.getActualValue.

getAllowedFacetsback to summary
public short getAllowedFacets()

Implements abstract com.sun.org.apache.xerces.internal.impl.dv.xs.TypeValidator.getAllowedFacets.

getDataLengthback to summary
public int getDataLength(Object value)

Overrides com.sun.org.apache.xerces.internal.impl.dv.xs.TypeValidator.getDataLength.

com.sun.org.apache.xerces.internal.impl.dv.xs back to summary

private final Class HexBinaryDV.XHex

extends ByteListImpl
Class Inheritance

Field Summary

Inherited from com.sun.org.apache.xerces.internal.impl.dv.util.ByteListImpl:
canonicaldata

Constructor Summary

AccessConstructor and Description
public
XHex(byte[] data)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object obj)

Overrides java.util.AbstractList.equals.

Implements java.util.List.equals, java.util.Collection.equals.

Compares the specified object with this list for equality.

public int
hashCode()

Overrides java.util.AbstractList.hashCode.

Implements java.util.List.hashCode, java.util.Collection.hashCode.

Returns the hash code value for this list.

public synchronized String
toString()

Overrides java.util.AbstractCollection.toString.

Returns a string representation of this collection.

Inherited from com.sun.org.apache.xerces.internal.impl.dv.util.ByteListImpl:
containsgetgetLengthitemsizetoByteArray

Constructor Detail

XHexback to summary
public XHex(byte[] data)

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.util.AbstractList.equals.

Implements java.util.List.equals, java.util.Collection.equals.

Doc from java.util.List.equals.

Compares the specified object with this list for equality. Returns true if and only if the specified object is also a list, both lists have the same size, and all corresponding pairs of elements in the two lists are equal. (Two elements e1 and e2 are equal if Objects.equals(e1, e2).) In other words, two lists are defined to be equal if they contain the same elements in the same order. This definition ensures that the equals method works properly across different implementations of the List interface.

hashCodeback to summary
public int hashCode()

Overrides java.util.AbstractList.hashCode.

Implements java.util.List.hashCode, java.util.Collection.hashCode.

Doc from java.util.List.hashCode.

Returns the hash code value for this list. The hash code of a list is defined to be the result of the following calculation:

int hashCode = 1;
    for (E e : list)
        hashCode = 31*hashCode + (e==null ? 0 : e.hashCode());
This ensures that list1.equals(list2) implies that list1.hashCode()==list2.hashCode() for any two lists, list1 and list2, as required by the general contract of Object#hashCode.
toStringback to summary
public synchronized String toString()

Overrides java.util.AbstractCollection.toString.

Doc from java.util.AbstractCollection.toString.

Returns a string representation of this collection. The string representation consists of a list of the collection's elements in the order they are returned by its iterator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). Elements are converted to strings as by String#valueOf(Object).