|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.rnd.VdbBuilderImpl
The default ESI VdbBuilder implementation.
Supported API: true
Extendable: true
Nested Class Summary | |
static class |
VdbBuilderImpl.ElementKey
|
Field Summary | |
private static String |
CLASSNAME
|
private ESIEffectivityHandler |
effectivityHandler
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
transactionNumber
|
private VdbContainer |
vdbContainer
|
private static String |
XML_META_NAME
|
Constructor Summary | |
VdbBuilderImpl()
|
Method Summary | |
void |
addElement(String groupName,
Element element,
Persistable persistable,
Collection targets)
Creates a VdbElement containing an I*E Element and a Persistable. |
void |
addElement(String groupName,
Element element,
Persistable persistable,
Persistable[] dependents,
Collection targets)
Creates a VdbElement containing an I*E Element and a Persistable. |
protected static void |
addTargetAssns(Collection targetAssns,
Persistable persistable,
Collection targets,
String action,
String releaseClass)
|
IeCollection |
asVDB()
Create the VDB from the contents of the VdbGroups that were built. |
protected static ESITargetAssociation |
createTargetAssn(Persistable persistable,
ESITarget target,
String action,
String releaseClass)
|
private String |
getAction(ESIGroupInfo groupInfo)
|
private String |
getAttValue(String name,
VdbElement vdbElement)
|
protected VdbGroup |
getGroup(String groupName)
Returns the VdbGroup identified by the groupName attribute. |
protected static ESIGroupInfo |
getGroupInfo(String groupName)
|
protected static ESIMapInfo |
getMapInfo(String groupName)
|
protected Collection |
getTargetAssnsForElements()
|
String |
getTransactionNumber()
Gets the value of the attribute: transactionNumber; The number of an ESI transaction. |
protected VdbContainer |
getVdbContainer()
Gets the object for the association that plays role: vdbContainer. |
void |
initialize(String transactionNumber)
Make sure the object is ready for requests. |
boolean |
isEmpty()
Returns a boolean response based on if groups are empty in the IeCollection. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
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(VdbBuilderImpl thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private String transactionNumber
private VdbContainer vdbContainer
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private ESIEffectivityHandler effectivityHandler
private static final String XML_META_NAME
Constructor Detail |
public VdbBuilderImpl()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(VdbBuilderImpl 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 String getTransactionNumber()
getTransactionNumber
in interface VdbBuilder
protected VdbContainer getVdbContainer()
public void initialize(String transactionNumber)
initialize
in interface VdbBuilder
transactionNumber
- protected VdbGroup getGroup(String groupName)
groupName
-
public void addElement(String groupName, Element element, Persistable persistable, Collection targets) throws ESIRendererException
addElement
in interface VdbBuilder
groupName
- The logical group to which the element argument is to be added.element
- The I*E element that is to be added to the group.persistable
- The persistable, of which the element is a representation. May be null.targets
- Collection of ESITarget objects.
ESIRendererException
public void addElement(String groupName, Element element, Persistable persistable, Persistable[] dependents, Collection targets) throws ESIRendererException
addElement
in interface VdbBuilder
groupName
- The logical group to which the element argument is to be added.element
- The I*E element that is to be added to the group.persistable
- The persistable, of which the element is a representation. May be null.dependents
- Dependent persistables, also of which the element is a representation. May be null.targets
- Collection of ESITarget objects.
ESIRendererException
public IeCollection asVDB() throws ESIRendererException
asVDB
in interface VdbBuilder
ESIRendererException
public boolean isEmpty() throws ESIRendererException
isEmpty
in interface VdbBuilder
ESIRendererException
protected Collection getTargetAssnsForElements() throws ESIRendererException
ESIRendererException
protected static void addTargetAssns(Collection targetAssns, Persistable persistable, Collection targets, String action, String releaseClass) throws ESIRendererException
ESIRendererException
protected static ESITargetAssociation createTargetAssn(Persistable persistable, ESITarget target, String action, String releaseClass) throws ESIRendererException
ESIRendererException
protected static ESIMapInfo getMapInfo(String groupName)
protected static ESIGroupInfo getGroupInfo(String groupName)
private String getAttValue(String name, VdbElement vdbElement)
private String getAction(ESIGroupInfo groupInfo)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |