Package com.microstrategy.web.app.tasks
Class AbstractMobileSubscriptionTask.SimpleSubscriptionTransform
- java.lang.Object
-
- com.microstrategy.web.app.tasks.AbstractMobileSubscriptionTask.SimpleSubscriptionTransform
-
- All Implemented Interfaces:
Transform
- Enclosing class:
- AbstractMobileSubscriptionTask
protected static class AbstractMobileSubscriptionTask.SimpleSubscriptionTransform extends java.lang.Object implements Transform
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleSubscriptionTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanTransform(Transformable data)Checks that the transform supports specified data object and that object is in the state supported by this transform.java.lang.StringgetDescription()Returns a textual description of the transform.FormalParametersgetFormalParams()Returns the collection of formal parameters associated with this transform.java.lang.StringgetID()Returns the unique name of the component to be used as the ID for its shellMarkupOutputgetPreview()Produces a preview output for this transform.java.lang.ClassgetSupportedBeanType()Returns a root class/interface supported by this transform.booleanisPreviewAvailable()Returns true if this transform supports preview functionality, false otherwise.booleanisResolved()Returns whether each required formal parameter has a value associated with it.booleansupports(Transformable data)Returns true if the transform supports the specified data object.booleansupports(java.lang.Class beanClass)Returns true if the transform supports objects of specified type.voidtransform(Transformable data, MarkupOutput transOut)Transforms the data object and appends result to the transOut.
-
-
-
Method Detail
-
canTransform
public boolean canTransform(Transformable data)
Description copied from interface:TransformChecks that the transform supports specified data object and that object is in the state supported by this transform.- Specified by:
canTransformin interfaceTransform- Returns:
- true if the transform supports specified data object and the object is in the state supported by this transform.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TransformReturns a textual description of the transform.- Specified by:
getDescriptionin interfaceTransform- Returns:
- The textual description of the transform.
-
getFormalParams
public FormalParameters getFormalParams()
Description copied from interface:TransformReturns the collection of formal parameters associated with this transform.- Specified by:
getFormalParamsin interfaceTransform- Returns:
- FormalParameters interface, which is a collection of formal parameters.
-
getID
public java.lang.String getID()
Description copied from interface:TransformReturns the unique name of the component to be used as the ID for its shell
-
getPreview
public MarkupOutput getPreview() throws java.lang.UnsupportedOperationException
Description copied from interface:TransformProduces a preview output for this transform.- Specified by:
getPreviewin interfaceTransform- Returns:
- a MarkupOutput containing preview of this transform.
- Throws:
java.lang.UnsupportedOperationException- in case the transform does not support preview functionality
-
getSupportedBeanType
public java.lang.Class getSupportedBeanType()
Description copied from interface:TransformReturns a root class/interface supported by this transform. We assume here that each transform supports only beans belonging to one class hierarchy.- Specified by:
getSupportedBeanTypein interfaceTransform- Returns:
- a root class/interface supported by this transform.
-
isPreviewAvailable
public boolean isPreviewAvailable()
Description copied from interface:TransformReturns true if this transform supports preview functionality, false otherwise.- Specified by:
isPreviewAvailablein interfaceTransform- Returns:
- true if this transform supports preview functionality, false otherwise.
-
isResolved
public boolean isResolved()
Description copied from interface:TransformReturns whether each required formal parameter has a value associated with it.- Specified by:
isResolvedin interfaceTransform- Returns:
- whether each required formal parameter has a value.
-
supports
public boolean supports(Transformable data)
Description copied from interface:TransformReturns true if the transform supports the specified data object. The check is performed only on the object's type, no object state is taken into account.- Specified by:
supportsin interfaceTransform- Parameters:
data- a transformable object- Returns:
- true if the transform supports the data object, false otherwise.
- See Also:
Transform.canTransform(com.microstrategy.web.beans.Transformable)
-
supports
public boolean supports(java.lang.Class beanClass)
Description copied from interface:TransformReturns true if the transform supports objects of specified type.
-
transform
public void transform(Transformable data, MarkupOutput transOut) throws java.lang.ClassCastException
Description copied from interface:TransformTransforms the data object and appends result to the transOut.- Specified by:
transformin interfaceTransform- Parameters:
data- an object to transform. It must be of proper type supported by the concrete transform this method called on, or ClassCastExcetption will be throwntransOut- the MarkupOutput object where the transform result will be added.- Throws:
java.lang.ClassCastException- if data is of the wrong type.
-
-