Class Item

  • Direct Known Subclasses:
    ItemProp, ItemScope

    public abstract class Item
    extends Object
    Base class for Microdata items.
    Author:
    Michele Mostarda (mostarda@fbk.eu)
    • Constructor Detail

      • Item

        public Item​(String xpath)
        Constructor.
        Parameters:
        xpath - xpath to this item in container document.
    • Method Detail

      • toJSON

        public abstract String toJSON()
        Returns:
        the JSON representation for this item.
      • getXpath

        public String getXpath()
        Returns:
        the item location in container document.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object