|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.project.WTRoleHolder
wt.project.WTActorRoleHolder
wt.project.WTIndirectRoleHolder
wt.lifecycle.PhaseTemplate
PhaseTemplate is a building block class for forming a life cycle definition. An ordered sequence of phase templates are connected to instantiate a life cycle template.
A PhaseTemplate is also a factory for creating Phase instances. The template specifies the state and behavior for a period of time when an object has that specific state.
Use the newPhaseTemplate
static factory method(s), not the
PhaseTemplate
constructor, to construct instances of this
class. Instances must be constructed using the static factory(s), in
order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
LifeCycleTemplate
,
Phase
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FINAL_PHASE
Label for the attribute; a flag to determine whether or not there is a successor to this phase Supported API: false |
private boolean |
finalPhase
|
static String |
GATE_WORKFLOW_ID
Label for the attribute. |
static String |
GATE_WORKFLOW_ID_REFERENCE
Label for the attribute. |
private ObjectReference |
gateWorkflowIdReference
|
private String |
name
|
static String |
NAME
Label for the attribute; Name for the context. |
private static int |
NAME_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
PHASE_STATE
Label for the attribute; A unique state to be associated with objects in this phase. |
private static int |
PHASE_STATE_UPPER_LIMIT
|
static String |
PHASE_WORKFLOW_ID
Label for the attribute. |
static String |
PHASE_WORKFLOW_ID_REFERENCE
Label for the attribute. |
private State |
phaseState
|
private ObjectReference |
phaseWorkflowIdReference
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
SERIES_SELECTOR
Label for the attribute; Select the SeriesRangeSelector. |
private static int |
SERIES_SELECTOR_UPPER_LIMIT
|
private SeriesRangeSelector |
seriesSelector
|
Fields inherited from class wt.project.WTIndirectRoleHolder |
|
Fields inherited from class wt.project.WTActorRoleHolder |
|
Fields inherited from class wt.project.WTRoleHolder |
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.project.IndirectRoleHolder |
ROLE_ROLE_MAP |
Fields inherited from interface wt.project.ActorRoleHolder |
ROLE_ACTOR_ROLE_MAP |
Fields inherited from interface wt.project.RoleHolder |
ROLE_PRINCIPAL_MAP |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
PhaseTemplate()
|
Method Summary | |
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
private void |
gateWorkflowIdReferenceValidate(ObjectReference a_GateWorkflowIdReference)
|
String |
getConceptualClassname()
Deprecated. |
WfProcessDefinition |
getGateWorkflowId()
Gets the object for the association that plays role: GATE_WORKFLOW_ID. |
ObjectReference |
getGateWorkflowIdReference()
Gets the value of the attribute: GATE_WORKFLOW_ID_REFERENCE. |
String |
getName()
Gets the value of the attribute: NAME. |
State |
getPhaseState()
Gets the value of the attribute: PHASE_STATE. |
WfProcessDefinition |
getPhaseWorkflowId()
Gets the object for the association that plays role: PHASE_WORKFLOW_ID. |
ObjectReference |
getPhaseWorkflowIdReference()
Gets the value of the attribute: PHASE_WORKFLOW_ID_REFERENCE. |
SeriesRangeSelector |
getSeriesSelector()
Gets the value of the attribute: SERIES_SELECTOR. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Initializes objects created by new-factory methods. |
boolean |
isFinalPhase()
Gets the value of the attribute: FINAL_PHASE. |
private void |
nameValidate(String a_Name)
|
static PhaseTemplate |
newPhaseTemplate()
Default factory for the class. |
private void |
phaseStateValidate(State a_PhaseState)
|
private void |
phaseWorkflowIdReferenceValidate(ObjectReference a_PhaseWorkflowIdReference)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PhaseTemplate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setFinalPhase(boolean a_FinalPhase)
Sets the value of the attribute: FINAL_PHASE. |
void |
setGateWorkflowId(WfProcessDefinition a_GateWorkflowId)
Sets the object for the association that plays role: GATE_WORKFLOW_ID. |
void |
setGateWorkflowIdReference(ObjectReference a_GateWorkflowIdReference)
Sets the value of the attribute: GATE_WORKFLOW_ID_REFERENCE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setPhaseState(State a_PhaseState)
Sets the value of the attribute: PHASE_STATE. |
void |
setPhaseWorkflowId(WfProcessDefinition a_PhaseWorkflowId)
Sets the object for the association that plays role: PHASE_WORKFLOW_ID. |
void |
setPhaseWorkflowIdReference(ObjectReference a_PhaseWorkflowIdReference)
Sets the value of the attribute: PHASE_WORKFLOW_ID_REFERENCE. |
void |
setSeriesSelector(SeriesRangeSelector a_SeriesSelector)
Sets the value of the attribute: SERIES_SELECTOR. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.project.WTIndirectRoleHolder |
addRole, deleteRole, deleteRoleTarget, getRoleRoleMap, getRoles, getRoleTarget, readVersion, setRoleRoleMap |
Methods inherited from class wt.project.WTActorRoleHolder |
addActorRole, deleteActorRoleTarget, getActorRoleTarget, getRoleActorRoleMap, readVersion, setRoleActorRoleMap |
Methods inherited from class wt.project.WTRoleHolder |
addPrincipal, deletePrincipal, getMembers, getPrincipals, getRolePrincipalMap, mapAsString, readVersion, rolePrincipalMapAsString, setRolePrincipalMap |
Methods inherited from class wt.fc.WTObject |
duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.project.ActorRoleHolder |
addActorRole, deleteActorRoleTarget, getActorRoleTarget, getRoleActorRoleMap, setRoleActorRoleMap |
Methods inherited from interface wt.project.RoleHolder |
addPrincipal, deletePrincipal, getPrincipals, getRolePrincipalMap, rolePrincipalMapAsString, setRolePrincipalMap |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String PHASE_STATE
private static int PHASE_STATE_UPPER_LIMIT
private State phaseState
public static final String FINAL_PHASE
private boolean finalPhase
public static final String SERIES_SELECTOR
private static int SERIES_SELECTOR_UPPER_LIMIT
private SeriesRangeSelector seriesSelector
public static final String GATE_WORKFLOW_ID
public static final String GATE_WORKFLOW_ID_REFERENCE
private ObjectReference gateWorkflowIdReference
public static final String PHASE_WORKFLOW_ID
public static final String PHASE_WORKFLOW_ID_REFERENCE
private ObjectReference phaseWorkflowIdReference
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public PhaseTemplate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTIndirectRoleHolder
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTIndirectRoleHolder
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PhaseTemplate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class WTIndirectRoleHolder
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class WTIndirectRoleHolder
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getName()
public void setName(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public State getPhaseState()
public void setPhaseState(State a_PhaseState) throws WTPropertyVetoException
a_PhaseState
-
WTPropertyVetoException
private void phaseStateValidate(State a_PhaseState) throws WTPropertyVetoException
a_PhaseState
-
WTPropertyVetoException
public boolean isFinalPhase()
public void setFinalPhase(boolean a_FinalPhase) throws WTPropertyVetoException
a_FinalPhase
-
WTPropertyVetoException
public SeriesRangeSelector getSeriesSelector()
public void setSeriesSelector(SeriesRangeSelector a_SeriesSelector) throws WTPropertyVetoException
a_SeriesSelector
-
WTPropertyVetoException
public WfProcessDefinition getGateWorkflowId()
public void setGateWorkflowId(WfProcessDefinition a_GateWorkflowId) throws WTPropertyVetoException, WTException
a_GateWorkflowId
-
WTPropertyVetoException
WTException
public ObjectReference getGateWorkflowIdReference()
public void setGateWorkflowIdReference(ObjectReference a_GateWorkflowIdReference) throws WTPropertyVetoException
a_GateWorkflowIdReference
-
WTPropertyVetoException
private void gateWorkflowIdReferenceValidate(ObjectReference a_GateWorkflowIdReference) throws WTPropertyVetoException
a_GateWorkflowIdReference
-
WTPropertyVetoException
public WfProcessDefinition getPhaseWorkflowId()
public void setPhaseWorkflowId(WfProcessDefinition a_PhaseWorkflowId) throws WTPropertyVetoException, WTException
a_PhaseWorkflowId
-
WTPropertyVetoException
WTException
public ObjectReference getPhaseWorkflowIdReference()
public void setPhaseWorkflowIdReference(ObjectReference a_PhaseWorkflowIdReference) throws WTPropertyVetoException
a_PhaseWorkflowIdReference
-
WTPropertyVetoException
private void phaseWorkflowIdReferenceValidate(ObjectReference a_PhaseWorkflowIdReference) throws WTPropertyVetoException
a_PhaseWorkflowIdReference
-
WTPropertyVetoException
public static PhaseTemplate newPhaseTemplate() throws WTException
WTException
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class WTIndirectRoleHolder
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class WTIndirectRoleHolder
protected void initialize() throws WTException
WTObject
initialize
in class WTIndirectRoleHolder
WTException
public void checkAttributes() throws InvalidAttributeException
WTObject
checkAttributes
in interface Persistable
checkAttributes
in class WTObject
InvalidAttributeException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |