Package org.apache.any23.extractor.microdata

## Class Item

- java.lang.Object
- - org.apache.any23.extractor.microdata.Item

- Direct Known Subclasses:
    `ItemProp`, `ItemScope`

      public abstract class Item
      extends Object

  Base class for Microdata items.
  Author:
    Michele Mostarda (mostarda@fbk.eu)

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Item​(String xpath)` | Constructor.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object obj)` |
    `String` | `getXpath()` |
    `int` | `hashCode()` |
    `abstract String` | `toJSON()` |

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### 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`

    - #### equals

          public boolean equals​(Object obj)

      Overrides:
        `equals` in class `Object`