Class MetaDataItem.Builder

  • Enclosing class:
    MetaDataItem

    public static class MetaDataItem.Builder
    extends Object
    Provides a meta data item builder.
    • Constructor Detail

      • Builder

        public Builder​(QName elementKey,
                       String elementValue)
        Creates a new meta data item builder
        Parameters:
        elementKey - the element name
        elementValue - the element value, (in other words, its text contents)
    • Method Detail

      • attribute

        public MetaDataItem.Builder attribute​(AttributeItem value)
        Sets the item's attribute.
        Parameters:
        value - the attribute
        Returns:
        returns this builder
      • build

        public MetaDataItem build()
        Creates a new meta data item based on the current state of the builder.
        Returns:
        returns a new meta data item