Package com.microstrategy.web.transform
Interface TransformDefns
- 
- All Superinterfaces:
 java.lang.Cloneable,ConfigurationElement
- All Known Implementing Classes:
 TransformDefnsImpl
public interface TransformDefns extends ConfigurationElement
The TransformDefns interface is used to manage a collection of transform definition objects.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Removes all of the TransformDefn objects from the collectionintgetCount()Returns the number of TransformDefn objects in the collection.TransformDefngetTransformDefn(int index)Retrieves a specific TransformDefn object by its numeric index.TransformDefngetTransformDefn(java.lang.String name)Retrives a specific TransformDefn object by its name.TransformDefnnewTransformDefn(java.lang.String transformName)Creates a new TransformDefn object and adds it to the collection.voidremove(int index)Removes the TransformDefn object at the specified position in the collection.voidremove(int index, boolean removeStyles)Removes the TransformDefn object at the specified position in the collection.voidremove(java.lang.String name)Removes the TransformDefn object with the specified name from the collection.voidremove(java.lang.String name, boolean removeStyles)Removes the TransformDefn object with the specified name from the collection.- 
Methods inherited from interface com.microstrategy.utils.config.ConfigurationElement
getAttribute, getAttributes, getElement, getElements, getKey, getNodeName, getStrAttribute, initFromXML, reload, toXML 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getCount
int getCount()
Returns the number of TransformDefn objects in the collection.- Returns:
 - number of TransformDefn objects contained in the collection.
 - See Also:
 TransformDefn
 
- 
getTransformDefn
TransformDefn getTransformDefn(int index) throws java.lang.IndexOutOfBoundsException
Retrieves a specific TransformDefn object by its numeric index.- Parameters:
 index- the index of the TransformDefn object in collection.- Returns:
 - the 
TransformDefnobject in the collection with the given index. - Throws:
 java.lang.IndexOutOfBoundsException- thrown if the index is invalid.
 
- 
getTransformDefn
TransformDefn getTransformDefn(java.lang.String name) throws java.lang.IllegalArgumentException
Retrives a specific TransformDefn object by its name.- Parameters:
 name- the name of the TransformDefn object.- Returns:
 - the 
TransformDefnobject in the collection with the given name. - Throws:
 java.lang.IllegalArgumentException- thrown if no transform definition has the given name in the collection.
 
- 
clear
void clear() throws java.lang.UnsupportedOperationExceptionRemoves all of the TransformDefn objects from the collection- Throws:
 java.lang.UnsupportedOperationException- thrown if the collection is read-only.
 
- 
remove
void remove(int index) throws java.lang.IndexOutOfBoundsException, java.lang.UnsupportedOperationExceptionRemoves the TransformDefn object at the specified position in the collection. This method will not remove the associations made to the object deleted in a Style object.- Parameters:
 index- the index of the TransformDefn object to remove.- Throws:
 IndexOutOfBoundException- thrown if the specified index is out of range.java.lang.UnsupportedOperationException- thrown if the collection is read-only.java.lang.IndexOutOfBoundsException
 
- 
remove
void remove(int index, boolean removeStyles) throws java.lang.IndexOutOfBoundsException, java.lang.UnsupportedOperationExceptionRemoves the TransformDefn object at the specified position in the collection.- Parameters:
 index- the index of the TransformDefn object to remove.removeStyles- whether you want to remove the styles associated with the TransformDefn object deleted or not.- Throws:
 IndexOutOfBoundException- thrown if the specified index is out of range.java.lang.UnsupportedOperationException- thrown if the collection is read-only.java.lang.IndexOutOfBoundsException
 
- 
remove
void remove(java.lang.String name) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationExceptionRemoves the TransformDefn object with the specified name from the collection. This method will not remove the associations made to the object deleted in a Style object.- Parameters:
 name- the name of the TransformDefn object to remove.- Throws:
 java.lang.IllegalArgumentException- thrown if no transform definition has the given name in the collection.java.lang.UnsupportedOperationException- thrown if the collection is read-only.
 
- 
remove
void remove(java.lang.String name, boolean removeStyles) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationExceptionRemoves the TransformDefn object with the specified name from the collection.- Parameters:
 name- the name of the TransformDefn object to remove.removeStyles- whether you want to remove the styles associated with the TransformDefn object deleted or not.- Throws:
 java.lang.IllegalArgumentException- thrown if no transform definition has the given name in the collection.java.lang.UnsupportedOperationException- thrown if the collection is read-only.
 
- 
newTransformDefn
TransformDefn newTransformDefn(java.lang.String transformName) throws java.lang.IllegalArgumentException, java.lang.UnsupportedOperationException
Creates a new TransformDefn object and adds it to the collection.- Parameters:
 transformName- the name of the new TransformDefn object.- Returns:
 - the 
TransformDefnobject just created. - Throws:
 java.lang.IllegalArgumentException- thrown if the transform definition name is used by another TransformDefn object in the collection or if the style name is empty.java.lang.UnsupportedOperationException- thrown if the collection is read-only.
 
 - 
 
 -