Interface IAnyAtomicItem
-
- All Superinterfaces:
IAtomicValuedItem
,IItem
- All Known Subinterfaces:
IAnyUriItem
,IBase64BinaryItem
,IBooleanItem
,IDateItem
,IDateTimeItem
,IDayTimeDurationItem
,IDecimalItem
,IDurationItem
,IEmailAddressItem
,IHostnameItem
,IIntegerItem
,IIPAddressItem
,IIPv4AddressItem
,IIPv6AddressItem
,IMarkupItem
,INcNameItem
,INonNegativeIntegerItem
,INumericItem
,IPositiveIntegerItem
,IStringItem
,ITokenItem
,IUntypedAtomicItem
,IUriReferenceItem
,IUuidItem
,IYearMonthDurationItem
- All Known Implementing Classes:
AbstractAnyAtomicItem
,AbstractIntegerItem
,AbstractNumericItem
,AbstractStringItem
public interface IAnyAtomicItem extends IAtomicValuedItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
asString()
Get the item's string value.IDataTypeAdapter<?>
getJavaTypeAdapter()
Get the item's type adapter.Object
getValue()
Get the item's "wrapped" value.default IStringItem
newStringItem()
Get a newIStringItem
based on the the textual value of the item's "wrapped" value.default IAnyAtomicItem
toAtomicItem()
Get the atomic value for the item.
-
-
-
Method Detail
-
toAtomicItem
@NonNull default IAnyAtomicItem toAtomicItem()
Description copied from interface:IAtomicValuedItem
Get the atomic value for the item. This may be the same item if the item is an instance ofIAnyAtomicItem
.- Specified by:
toAtomicItem
in interfaceIAtomicValuedItem
- Returns:
- the atomic value or
null
if the item has no available value
-
getValue
@NonNull Object getValue()
Description copied from interface:IItem
Get the item's "wrapped" value. This "wrapped" value may be:- In the case of an Assembly, a Java object representing the fields and flags of the assembly.
- In the case of a Field with flags, a Java object representing the field value and flags of the field.
- In the case of a Field without flags or a flag, a Java type managed by a
IDataTypeAdapter
or a primitive type provided by the Java standard library.
-
asString
@NonNull default String asString()
Get the item's string value.- Returns:
- the string value value of the item
-
newStringItem
@NonNull default IStringItem newStringItem()
Get a newIStringItem
based on the the textual value of the item's "wrapped" value.- Returns:
- a new string item
-
getJavaTypeAdapter
@NonNull IDataTypeAdapter<?> getJavaTypeAdapter()
Get the item's type adapter.- Returns:
- the type adapter for the item
-
-