com.sas.util.transforms
Class IndexedGetInterfaceToTreeInterfaceTransform

com.sas.util.transforms.IndexedGetInterfaceToTreeInterfaceTransform
All Implemented Interfaces:
com.sas.util.transforms.TransformInterface, java.io.Serializable

public class IndexedGetInterfaceToTreeInterfaceTransform
implements com.sas.util.transforms.TransformInterface

IndexedGetInterfaceToTreeInterfaceTransform transform an object which implements IndexedGetInterface to an object which implements TreeInterface.

See Also:
Serialized Form

Field Summary
static IndexedGetInterfaceToTreeInterfaceTransform defaultInstance
          Default instance of IndexedGetInterfaceToTreeInterfaceTransform.
 
Constructor Summary
IndexedGetInterfaceToTreeInterfaceTransform()
           
 
Method Summary
protected  com.sas.models.NodeInterface createNodeInterface(java.lang.Object o)
          Factory method to create an object representing o which implements NodeInterface.
 java.lang.Object transform(java.lang.Object object)
          Alias for transform(Object, String).
 java.lang.Object transform(java.lang.Object object, java.lang.String rootName)
           
 

Field Detail

defaultInstance

public static final IndexedGetInterfaceToTreeInterfaceTransform defaultInstance
Default instance of IndexedGetInterfaceToTreeInterfaceTransform.

Constructor Detail

IndexedGetInterfaceToTreeInterfaceTransform

public IndexedGetInterfaceToTreeInterfaceTransform()
Method Detail

transform

public java.lang.Object transform(java.lang.Object object)
Alias for transform(Object, String).

Specified by:
transform in interface com.sas.util.transforms.TransformInterface
Parameters:
object - the object to transform
See Also:
transform(Object, String)

transform

public java.lang.Object transform(java.lang.Object object,
                                  java.lang.String rootName)
Parameters:
object - the object to transform
rootName - the value for the root node's text property
Returns:
the tree interface that has been transformed

createNodeInterface

protected com.sas.models.NodeInterface createNodeInterface(java.lang.Object o)
Factory method to create an object representing o which implements NodeInterface. A NodeIcon object will be created for o with the return value of toString set as the text. Additionally o will be set as the objectData property of the NodeIcon object.

Parameters:
o - the object to create a NodeInterface for
Returns:
a NodeIcon object representing o
See Also:
NodeIcon, ObjectDataInterface



Copyright © 2009 SAS Institute Inc. All Rights Reserved.