public class Tag extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TagClient |
client |
protected String |
description |
protected String |
id |
protected org.codehaus.jackson.JsonNode |
jsonNode
contains the Json Structure as it is currently saved on the server
|
protected 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 |
| Constructor and Description |
|---|
Tag(TagClient client,
String id,
String title,
String description,
String parentTagId) |
| Modifier and Type | Method and Description |
|---|---|
Tag |
addTag(String id,
String title,
String description) |
String |
getDescription() |
String |
getId() |
org.codehaus.jackson.JsonNode |
getJsonNode() |
org.codehaus.jackson.JsonNode |
getJsonNode(String propName)
Get the JsonNode of a property.
|
String |
getNamespacePath() |
String |
getParentTagId() |
String |
getPath() |
String |
getTitle() |
String |
moveTo(Tag tag) |
public static final String PRIMARY_TYPE
public static final String RESOURCE_TYPE
public static final String TAG_ROOT_PATH
public static final String TAG_DEFAULT_NAMESPACE_PATH
public static final String TAG_PROP_TITLE
public static final String TAG_PROP_DESCRIPTION
protected String id
protected String title
protected String description
protected String parentTagId
protected String path
protected TagClient client
protected org.codehaus.jackson.JsonNode jsonNode
public String getParentTagId()
public String moveTo(Tag tag) throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientExceptionpublic String getPath()
public String getNamespacePath()
public org.codehaus.jackson.JsonNode getJsonNode()
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientExceptionpublic org.codehaus.jackson.JsonNode getJsonNode(String propName)
propName - the name of the propertypublic String getId()
public String getTitle()
public String getDescription()
Copyright © 2018. All rights reserved.