Interface StructuredDataCapableAsset
- 
- All Superinterfaces:
- BaseAsset
 - All Known Subinterfaces:
- Page,- XHTMLDataDefinitionBlock
 
 public interface StructuredDataCapableAsset extends BaseAsset Identifies that an asset is capable of structured data.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StructuredDataDefinitiongetDataDefinition()java.lang.StringgetDataDefinitionId()A shortcut forgetDataDefinition().getAssetId()java.lang.StringgetDataDefinitionPath()StructuredDataNode[]getStructuredData()Get the asset's structured data information, possibly null if the asset does not use structured data.StructuredDataNodegetStructuredDataNode(java.lang.String path)Returns first found StructuredDataNode identified by given path.StructuredDataNode[]getStructuredDataNodes(java.lang.String path)Return structured data nodes matching given path.java.util.List<StructuredDataNode>getStructuredDataNodesWithFieldId(java.lang.String definitionFieldId)StructuredDataNodegetStructuredDataNodeWithFieldId(java.lang.String definitionFieldId)voidsetName(java.lang.String newName)Set the asset's name- 
Methods inherited from interface com.hannonhill.cascade.api.asset.common.BaseAssetgetAssetId, getAssetType, getIdentifer
 
- 
 
- 
- 
- 
Method Detail- 
getStructuredDataStructuredDataNode[] getStructuredData() Get the asset's structured data information, possibly null if the asset does not use structured data.- Returns:
- the StructuredData information, or null if the page does not use structured data
 
 - 
getStructuredDataNodesWithFieldIdjava.util.List<StructuredDataNode> getStructuredDataNodesWithFieldId(java.lang.String definitionFieldId) - Returns:
- the StructuredDataNodes that match givendefinitionFieldId
 
 - 
getStructuredDataNodeWithFieldIdStructuredDataNode getStructuredDataNodeWithFieldId(java.lang.String definitionFieldId) - Returns:
- first found StructuredDataNodethat matches givendefinitionFieldId
 
 - 
getStructuredDataNodesStructuredDataNode[] getStructuredDataNodes(java.lang.String path) Return structured data nodes matching given path. The path contains node's ancestor group identifiers separated by "/". For example "employee-information/address/city".- Parameters:
- path- the structured data path to follow
- Returns:
- returns an array of top level StructuredDataNodes or an empty array if no matches are found
 
 - 
getStructuredDataNodeStructuredDataNode getStructuredDataNode(java.lang.String path) Returns first found StructuredDataNode identified by given path. This provides the same functionality as getStructuredDataNodes(path), but instead of returning all matching elements in form of an array, it will return first found element itself.- Returns:
- Returns first for StructuredDataNode or null.
 
 - 
getDataDefinitionPathjava.lang.String getDataDefinitionPath() - Returns:
- Returns the path of the data definition
 
 - 
setNamevoid setName(java.lang.String newName) Set the asset's name- Parameters:
- newName- the new name
 
 - 
getDataDefinitionStructuredDataDefinition getDataDefinition() - Returns:
- returns reference to the data definition
 
 - 
getDataDefinitionIdjava.lang.String getDataDefinitionId() A shortcut forgetDataDefinition().getAssetId()
 
- 
 
-