Class Item


  • public class Item
    extends Object
    Represents an item a form is generated for.

    This class can be augmented with the item's type and a representational URL by the form processor used to process the item.

    Author:
    Gavin Cornwell
    • Constructor Detail

      • Item

        public Item​(String kind,
                    String id)
        Constructs an item.
        Parameters:
        kind - The kind of item, for example, 'node', 'task'
        id - The identifier of the item
    • Method Detail

      • getKind

        public String getKind()
        Returns the kind of item.
        Returns:
        The kind of item
      • getId

        public String getId()
        Returns the identifier of the item
        Returns:
        The identifier of the item
      • getType

        public String getType()
        Returns the type of the item the form is for, could be a content model type, a workflow task type, an XML schema etc.
        Returns:
        The type of the item
      • getUrl

        public String getUrl()
        Returns a URL that represents the item
        Returns:
        A URL representing the item
      • setType

        public void setType​(String type)
        Sets the type of the item
        Parameters:
        type - The type
      • setUrl

        public void setUrl​(String url)
        Sets the URL that represents the item
        Parameters:
        url - The URL