Module dev.metaschema.core
Interface IMarkupMultilineItem
- All Superinterfaces:
IAnyAtomicItem,IAtomicValuedItem,ICollectionValue,IItem,IMarkupItem
An atomic Metapath item representing multiple lines of Markup.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IMarkupMultilineItemcast(IAnyAtomicItem item) Cast the provided type to this item type.default IMarkupMultilineItemcastAsType(IAnyAtomicItem item) Cast the provideditemto be the same type as this item.default IAtomicOrUnionType<IMarkupMultilineItem>getType()Get the type information for the item.type()Get the type information for this item.static IMarkupMultilineItemvalueOf(MarkupMultiline value) Construct a new item using the providedvalue.static IMarkupMultilineItemConstruct 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- multiple lines 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
-