|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.filters.OLAPMemberTreeNode
public class OLAPMemberTreeNode
This class defines a single node within an OLAP member tree model. It combines the
FilterValueInterface
and LabeledStringValueInterface
to
provide for selectable entries in both the filter model and qualifier selector model.
Constructor Summary | |
---|---|
|
OLAPMemberTreeNode(com.sas.iquery.metadata.business.DataItem dataItem)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(DimensionInterface dimension)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(HierarchyInterface hierarchy)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(LevelInterface level)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(MemberInterface member)
Constructs a new tree node from the given source model object. |
protected |
OLAPMemberTreeNode(MetadataEntityInterface entity)
Constructs a new tree node from the given source model object. |
|
OLAPMemberTreeNode(java.lang.Object userObject)
Constructs a new tree node containing the specified data object. |
|
OLAPMemberTreeNode(java.lang.Object userObject,
boolean allowsChildren)
Constructs a new tree node containing the specified data object. |
|
OLAPMemberTreeNode(TupleElementInterface element)
Constructs a new tree node from the given source model object. |
Method Summary | |
---|---|
java.lang.Object |
getData()
Returns the data for this node. |
int |
getDataType()
Returns the data type this value represents. |
java.lang.Object |
getFormat()
Returns the format for this value. |
java.lang.String |
getFormattedValue()
Returns the formatted representation of this value. |
java.lang.String |
getLabel()
Returns the label for this node. |
java.lang.Object |
getUnformattedValue()
Returns the unformatted representation of this value. |
java.lang.String |
getValue()
Returns the value for this node. |
void |
setDataType(int i)
Sets the data type this value represents. |
void |
setFormat(java.lang.Object object)
Sets the format for this value. |
void |
setLabel(java.lang.String string)
Sets the label for this node. |
void |
setValue(java.lang.Object object)
Sets the data for this node. |
java.lang.String |
toString()
Returns a text representation of this node. |
Constructor Detail |
---|
public OLAPMemberTreeNode(java.lang.Object userObject)
userObject
- the data for this nodepublic OLAPMemberTreeNode(java.lang.Object userObject, boolean allowsChildren)
userObject
- the data for this nodeallowsChildren
- if true, the node is allowed to have child
nodes -- otherwise, it is always a leaf nodeDefaultMutableTreeNode.getAllowsChildren()
protected OLAPMemberTreeNode(MetadataEntityInterface entity) throws OLAPException
entity
- the source object to examine
OLAPException
- if any errors occur while gathering metadatapublic OLAPMemberTreeNode(HierarchyInterface hierarchy) throws OLAPException
hierarchy
- the source object to examine
OLAPException
- if any errors occur while gathering metadatapublic OLAPMemberTreeNode(DimensionInterface dimension) throws OLAPException
dimension
- the source object to examine
OLAPException
- if any errors occur while gathering metadatapublic OLAPMemberTreeNode(LevelInterface level) throws OLAPException
level
- the source object to examine
OLAPException
- if any errors occur while gathering metadatapublic OLAPMemberTreeNode(MemberInterface member) throws OLAPException
member
- the source object to examine
OLAPException
- if any errors occur while gathering metadatapublic OLAPMemberTreeNode(com.sas.iquery.metadata.business.DataItem dataItem) throws com.sas.iquery.metadata.MetadataException
dataItem
- the source object to examine
com.sas.iquery.metadata.MetadataException
- if any errors occur while gathering metadatapublic OLAPMemberTreeNode(TupleElementInterface element) throws OLAPException
element
- the source object to examine
OLAPException
- if any errors occur while gathering metadataMethod Detail |
---|
public java.lang.String getLabel()
getLabel
in interface LabeledStringValueInterface
public java.lang.String getValue()
getValue
in interface LabeledStringValueInterface
public void setLabel(java.lang.String string)
string
- the new label for this nodepublic java.lang.String getFormattedValue()
getFormattedValue
in interface FilterValueInterface
FilterValueInterface.getFormattedValue()
public java.lang.Object getUnformattedValue()
getUnformattedValue
in interface FilterValueInterface
FilterValueInterface.getUnformattedValue()
public int getDataType()
getDataType
in interface FilterValueInterface
public java.lang.Object getFormat()
getFormat
in interface FilterValueInterface
public java.lang.Object getData()
getData
in interface FilterValueInterface
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public void setDataType(int i)
i
- the new data typepublic void setFormat(java.lang.Object object)
object
- the new format for this valuepublic void setValue(java.lang.Object object)
object
- the data for this node
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |