public static class ResourceId.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Object |
appInfo
Application related information, this enables application to use
this builder as there work bench.
|
protected NodeKey.NodeKeyBuilder |
curKeyBuilder |
protected List<NodeKey> |
nodeKeyList |
| Constructor and Description |
|---|
Builder()
Creates an instance of resource identifier builder.
|
Builder(ResourceId id)
Creates an instance of resource identifier builder.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceId.Builder |
addBranchPointSchema(String name,
String nameSpace)
Adds the descendant node's schema identity.
|
ResourceId.Builder |
addKeyLeaf(String name,
String nameSpace,
Object val)
Adds a multi instance nodes key attribute value to identify
the branch point of instance tree.
|
ResourceId.Builder |
addLeafListBranchPoint(String name,
String nameSpace,
Object val)
Adds a multi instance attribute's node identity.
|
ResourceId.Builder |
append(List<NodeKey> nodeKeys)
Appends a given list of NodeKey to current builder.
|
ResourceId.Builder |
append(ResourceId id)
Appends a given resource id to current builder.
|
Object |
appInfo()
Returns application information.
|
void |
appInfo(Object appInfo)
Sets application information.
|
ResourceId |
build()
Builds a resource identifier to based on set path information of
the resource.
|
protected void |
processCurKey()
Validates, build and add current key.
|
ResourceId.Builder |
removeLastKey()
Removes last key in the node key list.
|
protected Object appInfo
protected NodeKey.NodeKeyBuilder curKeyBuilder
public Builder()
public Builder(ResourceId id) throws CloneNotSupportedException
id - old resource identifierCloneNotSupportedException - when clone is not supportedpublic ResourceId.Builder append(ResourceId id) throws CloneNotSupportedException
id - resource identifier to be appendedCloneNotSupportedException - when clone is not supportedpublic ResourceId.Builder append(List<NodeKey> nodeKeys)
nodeKeys - list of NodeKey to be appendedprotected void processCurKey()
public ResourceId.Builder addBranchPointSchema(String name, String nameSpace)
name - name of descendant nodenameSpace - name space pf descendant nodepublic ResourceId.Builder addLeafListBranchPoint(String name, String nameSpace, Object val)
name - name of the leaf listnameSpace - name space of leaf listval - value of attribute to identify the instancepublic ResourceId.Builder addKeyLeaf(String name, String nameSpace, Object val)
name - name of the key attributenameSpace - name space of key attributeval - value of the key leaf, to match in the list entrypublic ResourceId build()
public ResourceId.Builder removeLastKey()
public Object appInfo()
public void appInfo(Object appInfo)
appInfo - application related informationCopyright © 2018. All rights reserved.