Module dev.metaschema.core
Interface IHexBinaryItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,dev.metaschema.core.metapath.item.atomic.impl.IBinaryItem,ICollectionValue,IItem
public interface IHexBinaryItem
extends dev.metaschema.core.metapath.item.atomic.impl.IBinaryItem
An atomic Metapath item containing a Base64 encoded data value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IHexBinaryItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IHexBinaryItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default intcompareTo(IHexBinaryItem item) Compares this value with the argument.default IAtomicOrUnionType<IHexBinaryItem>getType()Get the type information for the item.static IAtomicOrUnionType<IHexBinaryItem>type()Get the type information for this item.static IHexBinaryItemConstruct a new base64 byte sequence item using the provided base64 encoded stringvalue.static IHexBinaryItemvalueOf(ByteBuffer buffer) Construct a new URI base64 encoded byte sequence using the providedByteBuffervalue.Methods inherited from interface dev.metaschema.core.metapath.item.atomic.IAnyAtomicItem
accept, asMapKey, asString, asStringItem, atomize, deepEquals, getJavaTypeAdapter, getValue, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.atomic.impl.IBinaryItem
asByteBuffer, asBytesMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.IItem
contentsAsSequence, flatten, hasValue, toSequence
-
Method Details
-
type
Get the type information for this item.- Returns:
- the type information
-
getType
Description copied from interface:IItemGet the type information for the item. -
valueOf
Construct a new base64 byte sequence item using the provided base64 encoded stringvalue.- Parameters:
value- a string representing base64 encoded data- Returns:
- the new item
- Throws:
InvalidTypeMetapathException- if the provided string is not a valid Base64 character sequence
-
valueOf
Construct a new URI base64 encoded byte sequence using the providedByteBuffervalue.The provided buffer will be managed by this instance. Make a copy of the buffer to ensure that the position, limit, and mark of the original are not affect by this.
- Parameters:
buffer- a byte buffer- Returns:
- the new item
-
cast
Cast the provided type to this item type.- Parameters:
item- the item to cast- Returns:
- the original item if it is already this type, otherwise a new item cast to this type
- Throws:
InvalidValueForCastFunctionException- if the provideditemcannot be cast to this type
-
castAsType
Description copied from interface:IAnyAtomicItemCast the provideditemto be the same type as this item.- Specified by:
castAsTypein interfaceIAnyAtomicItem- Parameters:
item- the item to cast- Returns:
- an atomic item of this type
-
compareTo
Compares this value with the argument.- Parameters:
item- the item to compare with this value- Returns:
- a negative integer, zero, or a positive integer if this value is less
than, equal to, or greater than the
item.
-