public interface PayloadView
Modifier and Type | Method and Description |
---|---|
PayloadBlockIterator<PayloadBlockView> |
createViewIterator()
method to createColumnInfo an iterator that will do a depth first traversal of all sub-blocks below this Payload.
|
PayloadBlockIterator<PayloadBlockView> |
createViewIterator(java.lang.String blockName)
method to createColumnInfo an iterator that will do a depth first traversal of all sub-blocks below this PayloadBlock that
match the supplied blockName.
|
PayloadBlockIterator<PayloadBlockView> |
createViewIterator(java.lang.String blockName,
java.lang.String attrName)
method to createColumnInfo an iterator that will do a depth first traversal of all sub-blocks below this PayloadBlock that
match the supplied blockName and attribute name.
|
PayloadBlockIterator<PayloadBlockView> |
createViewIterator(java.lang.String blockName,
java.lang.String attrName,
java.lang.String value)
method to createColumnInfo an iterator that will do a depth first traversal of all sub-blocks below this PayloadBlock that
match the supplied blockName.
|
<T> T |
getAttribute(java.lang.String name)
method returns the attribute value for the provided attribute name.
|
java.util.List<PayloadAttributeInfo> |
getAttributeInfo()
method returns meta data about all available attributes in this Payload.
|
PayloadAttributeInfo |
getAttributeInfo(java.lang.String attributeName)
method returns meta data about the attribute info for the given fully qualified attribute.
|
java.lang.String |
getOperationType()
method gets the applicable operation type for this Payload
|
java.util.List<PayloadBlockInfo> |
getSubBlockInfo()
method returns meta data about the PayloadBlocks in this Payload.
|
java.util.List<PayloadBlockView> |
getSubBlocks(java.lang.String name)
method gets the sub-block matching the supplied name.
|
boolean |
hasAttribute(java.lang.String name)
method used to see if the Payload contains an attribute for the supplied name.
|
java.lang.String |
toDebugString()
method will produce a detailed representation of a payload
|
java.lang.String getOperationType()
<T> T getAttribute(java.lang.String name)
T
- the type of the expected attributename
- the name of the attribute to be retrieved (eg. ABC[2].XYZ[1].TIME)boolean hasAttribute(java.lang.String name)
name
- name of the attribute in question.PayloadBlockIterator<PayloadBlockView> createViewIterator()
PayloadBlockIterator<PayloadBlockView> createViewIterator(java.lang.String blockName)
blockName
- block name to match. A trailing '*' suffix can be used to do wildcard helps. (eg. CUSTOMER.BALANCE*)PayloadBlockIterator<PayloadBlockView> createViewIterator(java.lang.String blockName, java.lang.String attrName)
blockName
- block name to match. A trailing '*' suffix can be used to do wildcard helps. (eg. CUSTOMER.BALANCE*)attrName
- attr name to match.PayloadBlockIterator<PayloadBlockView> createViewIterator(java.lang.String blockName, java.lang.String attrName, java.lang.String value)
blockName
- block name to match. A trailing '*' suffix can be used to do wildcard helps. (eg. CUSTOMER.BALANCE*)attrName
- attr name to match.value
- attr value to match.java.util.List<PayloadBlockView> getSubBlocks(java.lang.String name)
name
- name of the block to get. Dot notation is NOT supported, this is a non-qualified block name
that represents a block with is a direct descendant of this payload.java.util.List<PayloadAttributeInfo> getAttributeInfo()
PayloadAttributeInfo getAttributeInfo(java.lang.String attributeName)
attributeName
- name of teh attribute for which the attribute info will be returnedjava.util.List<PayloadBlockInfo> getSubBlockInfo()
java.lang.String toDebugString()