|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.core.command.common.bean.AbstractCommand
com.ptc.core.command.common.bean.AbstractServerCommand
com.ptc.core.command.common.bean.entity.AbstractEntityCommand
com.ptc.core.command.common.bean.entity.NewEntityCommand
public class NewEntityCommand
This command can be used to make a new in-memory instance of either a
transient or persistent entity (i.e., object). It takes as input a TypeIdentifier
playing the role of the requestor of the command.
It returns as output an AttributeContainer inherited as
the result.
Supported API: true
Extendable: true
| Constructor Summary | |
|---|---|
NewEntityCommand()
Creates a new instance. |
|
| Method Summary | |
|---|---|
TypeIdentifier |
getIdentifier()
Gets the value of the attribute: identifier; The input TypeIdentifier. |
TypeInstance |
getSource()
Overrides the inherited method to throw UnsupportedOperationException. |
void |
setIdentifier(TypeIdentifier a_Identifier)
Sets the value of the attribute: identifier; The input TypeIdentifier. |
void |
setSource(TypeInstance instance)
Overrides the inherited method to throw UnsupportedOperationException. |
void |
setSource(TypeInstanceIdentifier instanceId)
Overrides inherited method to throw UnsupportedOperationException. |
void |
setSource(TypeInstanceIdentifier instanceId,
AttributeContainer instanceData)
Overrides inherited method to throw UnsupportedOperationException. |
void |
setSources(TypeInstanceIdentifier[] instanceIds)
Sets the sources [or inputs] of the command to the given TypeInstanceIdentifier[]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewEntityCommand()
| Method Detail |
|---|
public TypeIdentifier getIdentifier()
TypeIdentifier.
public void setIdentifier(TypeIdentifier a_Identifier)
throws WTPropertyVetoException
TypeIdentifier.
a_Identifier -
WTPropertyVetoException
public void setSource(TypeInstance instance)
throws UnsupportedOperationException
UnsupportedOperationException.
Since only a TypeIdentifier makes sense to be given as
the input, then nothing else should be allowed.
setSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandinstance -
UnsupportedOperationException
public TypeInstance getSource()
throws UnsupportedOperationException
UnsupportedOperationException.
Since only a TypeIdentifier makes sense to be given as
the input, then nothing else should be allowed.
getSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandUnsupportedOperationException
public void setSource(TypeInstanceIdentifier instanceId)
throws UnsupportedOperationException
UnsupportedOperationException.
Since only a TypeIdentifier makes sense to be given
as the input, then nothing else should be allowed.
setSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandinstanceId -
UnsupportedOperationException
public void setSource(TypeInstanceIdentifier instanceId,
AttributeContainer instanceData)
throws UnsupportedOperationException
UnsupportedOperationException.
Since only a TypeIdentifier makes sense to be given as
the input, then nothing else should be allowed.
setSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandinstanceId - instanceData -
UnsupportedOperationExceptionpublic void setSources(TypeInstanceIdentifier[] instanceIds)
TypeInstanceIdentifier[].
The outcome of this is that the objects represented by the TypeInstanceIdentifier[]
are prepared based upon the filter and returned as aTypeInstance[].
instanceIds -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||