org.apache.any23.extractor.microdata
Class ItemProp
java.lang.Object
org.apache.any23.extractor.microdata.Item
org.apache.any23.extractor.microdata.ItemProp
public class ItemProp
- extends Item
Describes a Microdata item property.
- Author:
- Michele Mostarda (mostarda@fbk.eu)
Methods inherited from class org.apache.any23.extractor.microdata.Item |
getXpath |
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.
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.
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Item
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Item
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.