|
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.LogHiddenAttributes
public final class LogHiddenAttributes
Container for the hidden attributes, i.e. attributes that excluded from msg.toString()
output.
Use with ToStringHelper.setHiddenAttributes(LogHiddenAttributes config);
to replace entire hidden attributes configuration with new one.
Nested Class Summary | |
---|---|
static class |
LogHiddenAttributes.AttributeSet
Hidden attribute set. |
Constructor Summary | |
---|---|
LogHiddenAttributes()
|
Method Summary | |
---|---|
LogHiddenAttributes.AttributeSet |
getHiddenSet(java.lang.String protocolName,
java.lang.String className)
Gets hidden attribute set. |
void |
hide(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.lang.String attributeName)
Adds hidden attribute. |
boolean |
isLogHidden(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.lang.String attributeName)
Check if attribute is hidden from msg.toString() output. |
void |
setHiddenAttributes(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.util.Set<java.lang.String> attributes)
Sets new hidden attributes for the specified protocol and message (or complex attribute) Specify empty list to unhide all attributes for the specified type |
void |
unhide(java.lang.String protocolName,
java.lang.String attributeHolderName,
java.lang.String attributeName)
Removes hidden attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogHiddenAttributes()
Method Detail |
---|
public void hide(java.lang.String protocolName, java.lang.String attributeHolderName, java.lang.String attributeName) throws java.lang.NullPointerException
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, attributeHolderName, attributeName is nullpublic void unhide(java.lang.String protocolName, java.lang.String attributeHolderName, java.lang.String attributeName) throws java.lang.NullPointerException
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, attributeHolderName, attributeName is nullpublic void setHiddenAttributes(java.lang.String protocolName, java.lang.String attributeHolderName, java.util.Set<java.lang.String> attributes) throws java.lang.NullPointerException
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 extends CompoundValue
or AbstractPrintable
attributes
- attributes set
java.lang.NullPointerException
- if protocolName or attributeHolderName is nullpublic 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 extends CompoundValue
or AbstractPrintable
attributeName
- attribute name
public LogHiddenAttributes.AttributeSet getHiddenSet(java.lang.String protocolName, java.lang.String className)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |