com.oroad.stxx.action
Class ActionTransform

java.lang.Object
  extended bycom.oroad.stxx.action.ActionTransform
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ActionTransform
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Defines a transform

Author:
Jeff Pennal, Don Brown
See Also:
Serialized Form

Constructor Summary
ActionTransform()
          Construct a new instance with default values.
ActionTransform(java.lang.String path)
          Deprecated. As of 1.2
ActionTransform(java.lang.String name, java.util.ArrayList paths, java.lang.String debug, java.lang.String render, java.lang.String type)
          Deprecated. As of 1.2
ActionTransform(java.lang.String path, boolean debug)
          Deprecated. As of 1.2
 
Method Summary
 void addParameter(java.lang.String name, java.lang.String value)
          Adds a parameter value
 java.lang.Object clone()
          Clones itself
 boolean getDebug()
          Deprecated. As of 1.2v use getParameter(java.lang.String) instead
 java.lang.String getName()
          Deprecated. As of v1.2v use getSelector() instead
 java.lang.String getParameter(java.lang.String name)
          Gets a single parameter value if one exists
 java.util.Collection getParameterNames()
          Gets a list of all available parameter names
 java.util.List getParameterValues(java.lang.String name)
          Gets a list of parameter values
 java.lang.String getPath()
          Deprecated. As of 1.2v use getParameter(java.lang.String) instead
 java.util.List getPaths()
          Deprecated. As of 1.2v use getParameterValues(java.lang.String) instead
 java.lang.String getRender()
          Deprecated. As of 1.2v use getParameter(java.lang.String) instead
 java.lang.String getSelector()
          Return the selector value.
 java.lang.String getType()
          Return the type flag.
 void setDebug(boolean debug)
          Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead
 void setMimeType(java.lang.String type)
          Deprecated. As of v1.2, use setType(java.lang.String) instead
 void setName(java.lang.String name)
          Deprecated. As of v1.2v use setSelector(java.lang.String) instead
 void setPath(java.lang.String path)
          Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead
 void setPaths(java.util.ArrayList paths)
          Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead
 void setRender(java.lang.String render)
          Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead
 void setSelector(java.lang.String selector)
          Set the selector.
 void setType(java.lang.String type)
          Set the type flag.
 java.lang.String toString()
          Return a String version of this mapping.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionTransform

public ActionTransform()
Construct a new instance with default values.


ActionTransform

public ActionTransform(java.lang.String path)
Deprecated. As of 1.2

Construct a new instance with the specified path.

Parameters:
path - Path for this instance

ActionTransform

public ActionTransform(java.lang.String path,
                       boolean debug)
Deprecated. As of 1.2

Construct a new instance with the specified path and debug flag.

Parameters:
path - Path for this instance
debug - debug flag for this instance

ActionTransform

public ActionTransform(java.lang.String name,
                       java.util.ArrayList paths,
                       java.lang.String debug,
                       java.lang.String render,
                       java.lang.String type)
Deprecated. As of 1.2

Construct a new instance initializing every field

Parameters:
name - The name of the transform
paths - An array of XSL paths
debug - Whether it should be in debugging mode
render - Where to render the output
type - The transform type to use
Method Detail

getName

public java.lang.String getName()
Deprecated. As of v1.2v use getSelector() instead

Return the name.

Returns:
The name value

setName

public void setName(java.lang.String name)
Deprecated. As of v1.2v use setSelector(java.lang.String) instead

Set the name.

Parameters:
name - The new name

getSelector

public java.lang.String getSelector()
Return the selector value.

Returns:
The selector value

setSelector

public void setSelector(java.lang.String selector)
Set the selector.

Parameters:
selector - The new selector

getPath

public java.lang.String getPath()
Deprecated. As of 1.2v use getParameter(java.lang.String) instead

Return the path.

Returns:
The path value

setPath

public void setPath(java.lang.String path)
Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead

Set the path.

Parameters:
path - The new path

getPaths

public java.util.List getPaths()
Deprecated. As of 1.2v use getParameterValues(java.lang.String) instead

Return array of paths the path.

Returns:
The paths value

setPaths

public void setPaths(java.util.ArrayList paths)
Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead

Set the paths.

Parameters:
paths - The new paths

getDebug

public boolean getDebug()
Deprecated. As of 1.2v use getParameter(java.lang.String) instead

Return the debug flag.

Returns:
The debug value

setDebug

public void setDebug(boolean debug)
Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead

Sets the debug mode


getRender

public java.lang.String getRender()
Deprecated. As of 1.2v use getParameter(java.lang.String) instead

Return the render flag.

Returns:
The render value

setRender

public void setRender(java.lang.String render)
Deprecated. As of 1.2v use addParameter(java.lang.String, java.lang.String) instead

Sets where the transform should take place


getParameterNames

public java.util.Collection getParameterNames()
Gets a list of all available parameter names


getParameter

public java.lang.String getParameter(java.lang.String name)
Gets a single parameter value if one exists

Parameters:
name - The name of the parameter
Returns:
The value if one exists, otherwise null
Since:
1.2

getParameterValues

public java.util.List getParameterValues(java.lang.String name)
Gets a list of parameter values

Parameters:
name - The name of the parameter
Returns:
A list of values if the parameter exists, otherwise null
Since:
1.2

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String value)
Adds a parameter value

Parameters:
name - The name of the parameter
value - The parameter value
Since:
1.2

getType

public java.lang.String getType()
Return the type flag.

Returns:
The type value

setType

public void setType(java.lang.String type)
Set the type flag.

Parameters:
type - The new type flag

setMimeType

public void setMimeType(java.lang.String type)
Deprecated. As of v1.2, use setType(java.lang.String) instead

Sets the type

Parameters:
type - The new type

toString

public java.lang.String toString()
Return a String version of this mapping.

Returns:
The debugging String

clone

public java.lang.Object clone()
Clones itself