|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.protocol.runtime.ToStringHelper
public class ToStringHelper
Helper class for msg.toString()
implementation.
Method Summary | |
---|---|
static LogHiddenAttributes.AttributeSet |
getHiddenAttributes(java.lang.String protocolName,
java.lang.String attributeHolderName)
Gets hidden attribute set. |
static void |
hideAttribute(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.lang.String attributeName)
Hide message attribute from msg.toString() output. |
static boolean |
isLogHidden(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.lang.String attributeName)
Check if attribute is hidden from msg.toString() output. |
static void |
setHiddenAttributes(LogHiddenAttributes config)
Applies new hidden attributes configuration. |
static java.lang.String |
toString(com.genesyslab.platform.commons.protocol.runtime.CompoundValue val)
For internal usage. |
static java.lang.String |
toString(com.genesyslab.platform.commons.protocol.runtime.CompoundValue val,
boolean truncate,
boolean hideAllowed)
For internal usage. |
static java.lang.String |
toString(com.genesyslab.platform.commons.protocol.runtime.CompoundValue val,
boolean truncate,
boolean hideAllowed,
int indent)
For internal usage. |
static java.lang.String |
toString(Message msg)
For internal usage. |
static java.lang.String |
toString(Message msg,
boolean hideAllowed,
boolean truncate)
For internal usage. |
static void |
unhideAttribute(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.lang.String attributeName)
Unhide message attribute from msg.toString() output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void hideAttribute(java.lang.String protocolName, java.lang.String attributeHolderName, java.lang.String attributeName) throws java.lang.NullPointerException
msg.toString()
output.
Example: ToStringHelper.hideAttribute("ContactServer", "InteractionContent", "Text")
protocolName
- name of the protocol, i.e. value returned by protocolDescription.getProtocolName()
attributeHolderName
- name of the protocol message (i.e. "EventInfo") or complex message attribute name.
Supported complex attributes: attributes that extend CompoundValue
or AbstractPrintable
attributeName
- attribute name
java.lang.NullPointerException
- if protocolName, className, attributeName is nullpublic static void unhideAttribute(java.lang.String protocolName, java.lang.String attributeHolderName, java.lang.String attributeName) throws java.lang.NullPointerException
msg.toString()
output.
Example: ToStringHelper.unhideAttribute("ContactServer", "InteractionContent", "Text")
protocolName
- name of the protocol, i.e. value returned by protocolDescription.getProtocolName()
attributeHolderName
- name of the protocol message (i.e. "EventInfo") or complex message attribute name.
Supported complex attributes: attributes that extend CompoundValue
or AbstractPrintable
attributeName
- attribute name
java.lang.NullPointerException
- if protocolName, className, attributeName is nullpublic static void setHiddenAttributes(LogHiddenAttributes config)
settings
- hidden attributes configurationpublic static boolean isLogHidden(java.lang.String protocolName, java.lang.String attributeHolderName, java.lang.String attributeName)
msg.toString()
output.
protocolName
- name of the protocol, i.e. value returned by protocolDescription.getProtocolName()
attributeHolderName
- Name of the protocol message or complex message attribute.
Supported complex attributes: attributes that extend CompoundValue
or AbstractPrintable
attributeName
- attribute name
public static LogHiddenAttributes.AttributeSet getHiddenAttributes(java.lang.String protocolName, java.lang.String attributeHolderName)
public static java.lang.String toString(Message msg)
public static java.lang.String toString(Message msg, boolean hideAllowed, boolean truncate)
public static java.lang.String toString(com.genesyslab.platform.commons.protocol.runtime.CompoundValue val)
public static java.lang.String toString(com.genesyslab.platform.commons.protocol.runtime.CompoundValue val, boolean truncate, boolean hideAllowed)
public static java.lang.String toString(com.genesyslab.platform.commons.protocol.runtime.CompoundValue val, boolean truncate, boolean hideAllowed, int indent)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |