Module dev.metaschema.core
Interface IUriReferenceItem
- All Superinterfaces:
IAnyAtomicItem,IAnyUriItem,IAtomicValuedItem,ICollectionValue,IItem
An atomic Metapath item containing a URI reference data value that complies
with RFC2396. URI references can be absolute URIs, relative URIs, or
same-document references.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IUriReferenceItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IUriReferenceItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default IAtomicOrUnionType<IUriReferenceItem>getType()Get the type information for the item.static IAtomicOrUnionType<IUriReferenceItem>type()Get the type information for this item.static IUriReferenceItemConstruct a new URI item using the provided stringvalue.static IUriReferenceItemConstruct a new item using the provided URIvalue.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.IAnyUriItem
asUri, compareTo, isAbsolute, isOpaque, resolveMethods 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.- Specified by:
getTypein interfaceIAnyUriItem- Specified by:
getTypein interfaceIItem- Returns:
- the item's type information
-
valueOf
Construct a new URI item using the provided stringvalue.- Parameters:
value- a string representing a URI- Returns:
- the new item
- Throws:
InvalidTypeMetapathException- if the given string violates RFC2396
-
valueOf
Construct a new item using the provided URIvalue.- Parameters:
value- a string representing a URI- Returns:
- the new item as a
IUriReferenceItem
-
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- Specified by:
castAsTypein interfaceIAnyUriItem- Parameters:
item- the item to cast- Returns:
- an atomic item of this type
-