org.apache.xerces.xs.datatypes.ByteList
this.data = data;
Checks if the byte item is a member of this list.paramitem byte whose presence in this list is to be tested.returnTrue if this list contains the byte item. for (int i = 0; i < data.length; ++i) { if (data[i] == item) { return true; } } return false;
byte
item
for (int i = 0; i < data.length; ++i) { if (data[i] == item) { return true; } } return false;
The number of bytes in the list. The range of valid child object indices is 0 to length-1 inclusive. return data.length;
length-1
return data.length;
Returns the indexth item in the collection. The index starts at 0.paramindex index into the collection.returnThe byte at the indexth position in the ByteList.exceptionXSException INDEX_SIZE_ERR: if index is greater than or equal to the number of objects in the list. if(index < 0 || index > data.length - 1) { throw new XSException(XSException.INDEX_SIZE_ERR, null); } return data[index];
index
ByteList
if(index < 0 || index > data.length - 1) { throw new XSException(XSException.INDEX_SIZE_ERR, null); } return data[index];