@ProviderType public class HApiUse extends Object implements org.apache.sling.scripting.sightly.pojo.Use
The type can be a JCR path or a fully qualified domain name like in
HApiUtil.getTypeNode(org.apache.sling.api.resource.ResourceResolver, String)
The convenience get methods are meant to be used in the 'data-sly-attribute' in the sightly script.
Constructor and Description |
---|
HApiUse() |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Initializes the helper and the attribute maps for the given type though the bindings
|
Map<String,Map<String,String>> |
getItemprop()
Get the itemprop attributes map for the type, for each property.
|
Map<String,String> |
getItemtype()
Get the itemtype html attributes map for the type
|
Map<String,String> |
getProptype()
Get a map of the type for each property name of the type
The key is the property name and the value is the type path in JCR
|
void |
init(Bindings bindings) |
public void init(Bindings bindings)
init
in interface org.apache.sling.scripting.sightly.pojo.Use
bindings
- public void activate() throws Exception
Exception
public Map<String,String> getItemtype()
public Map<String,Map<String,String>> getItemprop()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.