Interface INcNameItem

All Superinterfaces:
IAnyAtomicItem, IAtomicValuedItem, ICollectionValue, IItem, IStringItem

@Deprecated(forRemoval=true, since="0.7.0") public interface INcNameItem extends IStringItem
Deprecated, for removal: This API element is subject to removal in a future version.
An atomic Metapath item containing a non-colonized name (NCName) data value.
  • Method Details

    • type

      @NonNull static IAtomicOrUnionType<INcNameItem> type()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the type information for this item.
      Returns:
      the type information
    • getType

      default IAtomicOrUnionType<INcNameItem> getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: IItem
      Get the type information for the item.
      Specified by:
      getType in interface IItem
      Specified by:
      getType in interface IStringItem
      Returns:
      the item's type information
    • valueOf

      @NonNull static INcNameItem valueOf(@NonNull String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct a new item using the provided string value.
      Parameters:
      value - a string representing a NCName value
      Returns:
      the new item
    • cast

      @NonNull static INcNameItem cast(@NonNull IAnyAtomicItem item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 provided item cannot be cast to this type
    • castAsType

      default INcNameItem castAsType(IAnyAtomicItem item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: IAnyAtomicItem
      Cast the provided item to be the same type as this item.
      Specified by:
      castAsType in interface IAnyAtomicItem
      Specified by:
      castAsType in interface IStringItem
      Parameters:
      item - the item to cast
      Returns:
      an atomic item of this type