Class Tag
- java.lang.Object
-
- com.adobe.cq.testing.client.tagging.Tag
-
public class Tag extends Object
Created with IntelliJ IDEA. User: catalan Date: 5/30/12 Time: 3:37 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected TagClient
client
protected String
description
protected String
id
protected com.fasterxml.jackson.databind.JsonNode
jsonNode
contains the Json Structure as it is currently saved on the serverprotected String
parentTagId
protected String
path
static String
PRIMARY_TYPE
static String
RESOURCE_TYPE
static String
TAG_DEFAULT_NAMESPACE_PATH
static String
TAG_PROP_DESCRIPTION
static String
TAG_PROP_TITLE
static String
TAG_ROOT_PATH
protected String
title
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
addTag(String id, String title, String description)
String
getDescription()
String
getId()
com.fasterxml.jackson.databind.JsonNode
getJsonNode()
com.fasterxml.jackson.databind.JsonNode
getJsonNode(String propName)
Get the JsonNode of a property.String
getNamespacePath()
String
getParentTagId()
String
getPath()
String
getTitle()
String
moveTo(Tag tag)
-
-
-
Field Detail
-
PRIMARY_TYPE
public static final String PRIMARY_TYPE
- See Also:
- Constant Field Values
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
TAG_ROOT_PATH
public static final String TAG_ROOT_PATH
- See Also:
- Constant Field Values
-
TAG_DEFAULT_NAMESPACE_PATH
public static final String TAG_DEFAULT_NAMESPACE_PATH
- See Also:
- Constant Field Values
-
TAG_PROP_TITLE
public static final String TAG_PROP_TITLE
- See Also:
- Constant Field Values
-
TAG_PROP_DESCRIPTION
public static final String TAG_PROP_DESCRIPTION
- See Also:
- Constant Field Values
-
id
protected String id
-
title
protected String title
-
description
protected String description
-
parentTagId
protected String parentTagId
-
path
protected String path
-
client
protected TagClient client
-
jsonNode
protected com.fasterxml.jackson.databind.JsonNode jsonNode
contains the Json Structure as it is currently saved on the server
-
-
Method Detail
-
getParentTagId
public String getParentTagId()
-
moveTo
public String moveTo(Tag tag) throws org.apache.sling.testing.clients.ClientException
- Throws:
org.apache.sling.testing.clients.ClientException
-
getPath
public String getPath()
-
getNamespacePath
public String getNamespacePath()
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode() throws org.apache.sling.testing.clients.ClientException
- Throws:
org.apache.sling.testing.clients.ClientException
-
getJsonNode
public com.fasterxml.jackson.databind.JsonNode getJsonNode(String propName)
Get the JsonNode of a property. The property can have multiple levels.- Parameters:
propName
- the name of the property- Returns:
- the json node for the property
-
getId
public String getId()
-
getTitle
public String getTitle()
-
getDescription
public String getDescription()
-
-