This project has retired. For details please refer to its
Attic page.
ItemScope (Apache Any23 2.8-SNAPSHOT API)
-
-
Method Summary
-
Methods inherited from class org.apache.any23.extractor.microdata.Item
getXpath
-
-
Constructor Detail
-
ItemScope
public ItemScope(String xpath,
ItemProp[] itemProps,
String id,
String[] refs,
String type,
String itemId)
Constructor.
- Parameters:
xpath
- location of this itemscope within the container document.
itemProps
- list of properties bound to this itemscope.
id
- DOM identifier for this itemscope. Can be null
.
refs
- list of item prop references connected to this itemscope. Can be null
.
type
- itemscope type. Can be null
.
itemId
- itemscope id. Can be null
.
-
Method Detail
-
getId
public String getId()
- Returns:
- the itemscope
-
getType
public URL getType()
- Returns:
- itemscope type.
-
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