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)
-
-
Constructor Summary
Constructors Constructor Description ItemProp(String xpath, String name, ItemPropValue value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()ItemPropValuegetValue()inthashCode()StringtoJSON()StringtoString()
-
-
-
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()
-
-