|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.jdbc.api.DefaultDisplayHelper
public class DefaultDisplayHelper
Implement a default display helper that can be used with the TextOutputVisitor
and XMLOutputVisitor
.
Constructor Summary | |
---|---|
DefaultDisplayHelper()
|
Method Summary | |
---|---|
java.lang.String |
getDescription(PlanNode node)
Get the description to use for this plan node, which is usually displayed after the name as a short description. |
java.lang.String |
getName(PlanNode node)
Get the name to use for this plan node. |
java.util.List |
getOrderedProperties(PlanNode node)
Determine the proper order to display the properties of the node. |
java.lang.String |
getPropertyName(java.lang.String property)
Get display name for a particular property name. |
void |
setMaxDescriptionLength(int length)
A max description length so that the description can be truncated when necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDisplayHelper()
Method Detail |
---|
public java.lang.String getName(PlanNode node)
DisplayHelper
getName
in interface DisplayHelper
node
- The node
public java.lang.String getDescription(PlanNode node)
DisplayHelper
getDescription
in interface DisplayHelper
node
- The node
public java.util.List getOrderedProperties(PlanNode node)
DisplayHelper
getOrderedProperties
in interface DisplayHelper
node
- The node
public java.lang.String getPropertyName(java.lang.String property)
DisplayHelper
getPropertyName
in interface DisplayHelper
property
- The property name, as used in the node's properties
public void setMaxDescriptionLength(int length)
DisplayHelper
setMaxDescriptionLength
in interface DisplayHelper
length
- Max string length
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |