Top Description Inners Fields Constructors Methods
org.apache.xerces.impl.dv.xs

public Class Base64BinaryDV

extends TypeValidator
Class Inheritance
Imports
org.apache.xerces.impl.dv.InvalidDatatypeValueException, .ValidationContext, org.apache.xerces.impl.dv.util.Base64, .ByteListImpl

Represent the schema type "base64Binary"
Authors
Neeraj Bajaj, Sun Microsystems, inc., Sandy Gao, IBM
Version
$Id: Base64BinaryDV.java 446745 2006-09-15 21:43:58Z mrglavas $

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
Base64BinaryDV.XBase64

represent base64 data

Field Summary

Inherited from org.apache.xerces.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 org.apache.xerces.impl.dv.xs.TypeValidator:
checkExtraRulescomparegetDigitgetFractionDigitsgetTotalDigitsisDigitisIdentical

Constructor Detail

Base64BinaryDVback to summary
public Base64BinaryDV()

Method Detail

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

Implements abstract org.apache.xerces.impl.dv.xs.TypeValidator.getActualValue.

getAllowedFacetsback to summary
public short getAllowedFacets()

Implements abstract org.apache.xerces.impl.dv.xs.TypeValidator.getAllowedFacets.

getDataLengthback to summary
public int getDataLength(Object value)

Overrides org.apache.xerces.impl.dv.xs.TypeValidator.getDataLength.

org.apache.xerces.impl.dv.xs back to summary

private final Class Base64BinaryDV.XBase64

extends ByteListImpl
Class Inheritance

represent base64 data

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
XBase64(byte[] data)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the object to be compared for equality with this list
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 org.apache.xerces.impl.dv.util.ByteListImpl:
containsgetgetLengthitemsizetoByteArray

Constructor Detail

XBase64back to summary
public XBase64(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.

Parameters
obj:Object

the object to be compared for equality with this list

Returns:boolean

true if the specified object is equal to this list

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.
Returns:int

the hash code value for this list

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).

Returns:String

a string representation of this collection