com.filenet.api.action
Class ChangeClass
java.lang.Object
com.filenet.api.action.PendingAction
com.filenet.api.action.ChangeClass
- All Implemented Interfaces:
- java.io.Serializable
public class ChangeClass
- extends PendingAction
Represents a pending action for changing the class of a Content Engine object. When an object calls
the changeClass
method, the API automatically creates an instance of the ChangeClass
class and adds it to the underlying object's collection of PendingAction
objects.
- See Also:
- Serialized Form
Constructor Summary |
ChangeClass(java.lang.String newClass)
Creates a new instance of a ChangeClass pending action object. |
Method Summary |
java.lang.String |
getNewClass()
Returns the symbolic name (if a symbolic name was entered in the ChangeClass constructor)
or ID (if an ID was entered in the ChangeClass constructor) of the new class with which
the underlying object of this pending action has been associated. |
Methods inherited from class com.filenet.api.action.PendingAction |
getBinaryListValue, getBinaryValue, getBooleanListValue, getBooleanValue, getDateTimeListValue, getDateTimeValue, getEngineObjectValue, getFloat64ListValue, getFloat64Value, getIdListValue, getIdValue, getInteger32ListValue, getInteger32Value, getObjectValue, getStringListValue, getStringValue, putObjectValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, putValue, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChangeClass
public ChangeClass(java.lang.String newClass)
- Creates a new instance of a
ChangeClass
pending action object.
- Parameters:
newClass
- A String
specifying the symbolic name (or ClassNames
constant)
or ID (or GUIDConstants
constant) of the new class.
- Throws:
E_REQUIRED_VALUE_ABSENT
- if the newClass parameter is null or an empty string. Thrown when you
you call the save
method.
E_BAD_CLASSID
- if the new class is not the same object type as the old class or the table ID of the
new class is not the same as the old class. Thrown when you call the save
method.
E_NOT_SUPPORTED
- if the old class is not subclassable by the user or the object is a new or
unpersisted object. Thrown when you call the save
method.
E_NOT_CREATABLE
- if the new class does not allow the user to create instances. Thrown when you
call the save
method.
getNewClass
public java.lang.String getNewClass()
- Returns the symbolic name (if a symbolic name was entered in the
ChangeClass
constructor)
or ID (if an ID was entered in the ChangeClass
constructor) of the new class with which
the underlying object of this pending action has been associated.
- Returns:
- A
String
specifying the symbolic name or ID of the new class.
© Copyright IBM Corporation 2006, 2008. All rights reserved.