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 |
Item(String xpath)
Constructor. |
Item
public Item(String xpath)
- Constructor.
- Parameters:
xpath
- xpath to this item in container document.
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
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.