public class AemTags extends Object implements Iterable<AemTagItem>, Configurable
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE_SEPARATOR
Colon.
|
static String |
PARENT_PATH_SEPARATOR
Slash.
|
| Constructor and Description |
|---|
AemTags() |
| Modifier and Type | Method and Description |
|---|---|
AemTags |
addTag(String tag)
Adds a tag.
|
AemTags |
addTag(String namespace,
String pathAndTagName)
Adds new tag.
|
AemTags |
clear()
Remove all tags from the field.
|
AemTagItem |
getTagItem(String text)
Method to search for tag item.
|
Iterator<AemTagItem> |
iterator() |
AemTags |
removeTag(String text)
Search for item with provided text
getTagItem(String) and then invoke remove method. |
void |
setValue(String value)
Sets the value in AemElement.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String NAMESPACE_SEPARATOR
public static final String PARENT_PATH_SEPARATOR
public AemTags clear()
public AemTags removeTag(String text)
getTagItem(String) and then invoke remove method.text - tag textpublic AemTagItem getTagItem(String text)
text - tag textpublic AemTags addTag(String namespace, String pathAndTagName) throws DeniedTagException
namespace - - e.g. Facebook, if null or blank default namespace is usedpathAndTagName - - path to tag e.g. Location/MyTagNameDeniedTagException - if tag is deniedpublic AemTags addTag(String tag) throws DeniedTagException
tag - e.g. Facebook:Test/MyTagName, Test/MyTagNameDeniedTagException - if tag is deniedpublic Iterator<AemTagItem> iterator()
iterator in interface Iterable<AemTagItem>public int size()
public void setValue(String value)
ConfigurablesetValue in interface Configurablevalue - configuration value to be setCopyright © 2016–2018 Cognifide Ltd.. All rights reserved.