Class ItemProp


  • public class ItemProp
    extends Item
    Describes a Microdata item property.
    Author:
    Michele Mostarda (mostarda@fbk.eu)
    • Constructor Detail

      • ItemProp

        public ItemProp​(String xpath,
                        String name,
                        ItemPropValue value)
        Constructor.
        Parameters:
        xpath - item location in container document.
        name - item property name.
        value - item property value.
    • Method Detail

      • getName

        public String getName()
        Returns:
        the item property name.
      • getValue

        public ItemPropValue getValue()
        Returns:
        the item property value.
      • toJSON

        public String toJSON()
        Specified by:
        toJSON in class Item
        Returns:
        the JSON representation for this item.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Item
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Item