Module dev.metaschema.core
Interface IMarkupLineItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IItem,IMarkupItem
An atomic Metapath item representing a single line of Markup.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IMarkupLineItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IMarkupLineItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default IAtomicOrUnionType<IMarkupLineItem>getType()Get the type information for the item.static IAtomicOrUnionType<IMarkupLineItem>type()Get the type information for this item.static IMarkupLineItemvalueOf(MarkupLine value) Construct a new item using the providedvalue.static IMarkupLineItemConstruct a new item using the providedvalue.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.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.IItem
contentsAsSequence, flatten, hasValue, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.atomic.IMarkupItem
asMarkup, compareTo
-
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 interfaceIItem- Specified by:
getTypein interfaceIMarkupItem- Returns:
- the item's type information
-
valueOf
Construct a new item using the providedvalue.- Parameters:
value- a line of markup- Returns:
- the new item
-
valueOf
Construct a new item using the providedvalue.- Parameters:
value- a line of markup- 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- Specified by:
castAsTypein interfaceIMarkupItem- Parameters:
item- the item to cast- Returns:
- an atomic item of this type
-