|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.part.PartPathOccurrence
This PathOccurrence
has a name attribute that can
be used to hold a reference designator value.
Use the newPartPathOccurrence
static factory method(s),
not the PartPathOccurrence
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: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Vector |
combinedPathOccurrenceVector
|
static String |
CONTEXT
Label for the attribute. |
private ObjectReference |
contextReference
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
name
|
private static int |
NAME_UPPER_LIMIT
|
private Vector |
occurrenceDataVector
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static String |
SUB_PATH
Label for the attribute. |
private ObjectReference |
subPathReference
|
private PersistInfo |
thePersistInfo
|
private UsesOccurrence |
uses
|
private UsesOccurrenceReference |
usesReference
|
Fields inherited from interface wt.occurrence.PathOccurrence |
COMBINED_PATH_OCCURRENCE_VECTOR, CONTEXT_REFERENCE, PATH_NAME, SUB_PATH_REFERENCE, USES, USES_NAME, USES_REFERENCE |
Fields inherited from interface wt.occurrence.Occurrence |
NAME, OCCURRENCE_DATA_VECTOR |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Constructor Summary | |
PartPathOccurrence()
|
Method Summary | |
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
private void |
contextReferenceValidate(ObjectReference a_ContextReference)
|
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. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
Vector |
getCombinedPathOccurrenceVector()
Gets the value of the attribute: COMBINED_PATH_OCCURRENCE_VECTOR. |
String |
getConceptualClassname()
Deprecated. |
PathOccurrenceMasterContext |
getContext()
Gets the object for the association that plays role: CONTEXT. |
ObjectReference |
getContextReference()
Gets the value of the attribute: CONTEXT_REFERENCE. |
String |
getIdentity()
Deprecated. Replaced by IdentityFactory.getDispayIdentifier(object) to return a localizable equivalent of getIdentity(). To return a localizable value which includes the object type, use IdentityFactory.getDisplayIdentity(object). Other alternatives are ((WTObject)obj).getDisplayIdentifier() and ((WTObject)obj).getDisplayIdentity(). |
String |
getName()
Gets the value of the attribute: NAME. |
Vector |
getOccurrenceDataVector()
Gets the value of the attribute: OCCURRENCE_DATA_VECTOR. |
Vector |
getPathList()
Returns a Vector of the PathOccurrence objects
that make up this path. |
String |
getPathName()
Gets the value of the attribute: PATH_NAME. |
PersistInfo |
getPersistInfo()
Gets the object for the association that plays role: PERSIST_INFO. |
PathOccurrence |
getSubPath()
Gets the object for the association that plays role: SUB_PATH. |
ObjectReference |
getSubPathReference()
Gets the value of the attribute: SUB_PATH_REFERENCE. |
String |
getType()
Deprecated. Replaced by IdentityFactory.getDispayType(object) to return a localizable equivalent of getType(). Another alternative is ((WTObject)obj).getDisplayType(). |
UsesOccurrence |
getUses()
Gets the value of the attribute: USES. |
String |
getUsesName()
Gets the value of the attribute: USES_NAME. |
UsesOccurrenceReference |
getUsesReference()
Gets the object for the association that plays role: USES_REFERENCE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
boolean |
hasSubPath()
Returns true if the PathOccurrence has a non-null sub
path. |
protected void |
initialize(PartUsesOccurrence partUsesOccurrence,
PartPathOccurrence subPartPathOccurrence)
Supports initialization, following construction of an instance. |
protected void |
initialize(PartUsesOccurrence partUsesOccurrence,
PathOccurrenceMasterContext context)
Supports initialization, following construction of an instance. |
private void |
nameValidate(String a_Name)
|
static PartPathOccurrence |
newPartPathOccurrence(PartUsesOccurrence partUsesOccurrence,
PartPathOccurrence subPartPathOccurrence)
This constructor returns a PartPathOccurrence with the
given PartUsesOccurrence , given subPath and copying
the PathOccurrenceMasterContext (normally a
WTProductMaster ) from the subPath . |
static PartPathOccurrence |
newPartPathOccurrence(PartUsesOccurrence partUsesOccurrence,
PathOccurrenceMasterContext context)
This constructor returns a PartPathOccurrence with the
given PartUsesOccurrence , the given PathOccurrenceMasterContext
(normally a WTProductMaster ) and no subPath . |
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(PartPathOccurrence thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setCombinedPathOccurrenceVector(Vector a_CombinedPathOccurrenceVector)
Sets the value of the attribute: COMBINED_PATH_OCCURRENCE_VECTOR. |
void |
setContext(PathOccurrenceMasterContext a_Context)
Sets the object for the association that plays role: CONTEXT. |
void |
setContextReference(ObjectReference a_ContextReference)
Sets the value of the attribute: CONTEXT_REFERENCE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setOccurrenceDataVector(Vector a_OccurrenceDataVector)
Sets the value of the attribute: OCCURRENCE_DATA_VECTOR. |
void |
setPathName(String a_PathName)
Sets the value of the attribute: PATH_NAME. |
void |
setPersistInfo(PersistInfo a_PersistInfo)
Sets the object for the association that plays role: PERSIST_INFO. |
void |
setSubPath(PathOccurrence a_SubPath)
Sets the object for the association that plays role: SUB_PATH. |
void |
setSubPathReference(ObjectReference a_SubPathReference)
Sets the value of the attribute: SUB_PATH_REFERENCE. |
void |
setUses(UsesOccurrence a_Uses)
Sets the value of the attribute: USES. |
void |
setUsesName(String a_UsesName)
Sets the value of the attribute: USES_NAME. |
void |
setUsesReference(UsesOccurrenceReference a_UsesReference)
Sets the object for the association that plays role: USES_REFERENCE. |
private void |
subPathReferenceValidate(ObjectReference a_SubPathReference)
|
String |
toString()
Returns the conceptual (modeled) name for the class. |
private void |
usesReferenceValidate(UsesOccurrenceReference a_UsesReference)
|
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Vector combinedPathOccurrenceVector
private UsesOccurrence uses
public static final String SUB_PATH
private ObjectReference subPathReference
public static final String CONTEXT
private ObjectReference contextReference
private UsesOccurrenceReference usesReference
private static int NAME_UPPER_LIMIT
private String name
private Vector occurrenceDataVector
private PersistInfo thePersistInfo
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public PartPathOccurrence()
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(PartPathOccurrence 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
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public static PartPathOccurrence newPartPathOccurrence(PartUsesOccurrence partUsesOccurrence, PathOccurrenceMasterContext context) throws WTException, WTPropertyVetoException
PartPathOccurrence
with the
given PartUsesOccurrence
, the given PathOccurrenceMasterContext
(normally a WTProductMaster
) and no subPath
.
partUsesOccurrence
- context
-
WTException
WTPropertyVetoException
protected void initialize(PartUsesOccurrence partUsesOccurrence, PathOccurrenceMasterContext context) throws WTException, WTPropertyVetoException
partUsesOccurrence
- context
-
WTException
WTPropertyVetoException
public static PartPathOccurrence newPartPathOccurrence(PartUsesOccurrence partUsesOccurrence, PartPathOccurrence subPartPathOccurrence) throws WTException, WTPropertyVetoException
PartPathOccurrence
with the
given PartUsesOccurrence
, given subPath
and copying
the PathOccurrenceMasterContext
(normally a
WTProductMaster
) from the subPath
.
partUsesOccurrence
- subPartPathOccurrence
-
WTException
WTPropertyVetoException
protected void initialize(PartUsesOccurrence partUsesOccurrence, PartPathOccurrence subPartPathOccurrence) throws WTException, WTPropertyVetoException
partUsesOccurrence
- subPartPathOccurrence
-
WTException
WTPropertyVetoException
public Vector getCombinedPathOccurrenceVector()
Vector
can be populated with CombinedPathOccurrence
that is associated to a parent PathOccurrence
.
getCombinedPathOccurrenceVector
in interface PathOccurrence
public void setCombinedPathOccurrenceVector(Vector a_CombinedPathOccurrenceVector) throws WTPropertyVetoException
Vector
can be populated with CombinedPathOccurrence
that is associated to a parent PathOccurrence
.
setCombinedPathOccurrenceVector
in interface PathOccurrence
a_CombinedPathOccurrenceVector
-
WTPropertyVetoException
public UsesOccurrence getUses()
UsesOccurrence
that was
used to retrieve the PathOccurrence
. This is necessary since
the PathOccurrence
only has a UsesOccurrenceReference
,
which could refer to more than one UsesOccurrence
.
getUses
in interface PathOccurrence
public void setUses(UsesOccurrence a_Uses) throws WTPropertyVetoException
UsesOccurrence
that was
used to retrieve the PathOccurrence
. This is necessary since
the PathOccurrence
only has a UsesOccurrenceReference
,
which could refer to more than one UsesOccurrence
.
setUses
in interface PathOccurrence
a_Uses
-
WTPropertyVetoException
public String getUsesName()
getUsesName
in interface PathOccurrence
public void setUsesName(String a_UsesName) throws WTPropertyVetoException
setUsesName
in interface PathOccurrence
a_UsesName
-
WTPropertyVetoException
public String getPathName()
getPathName
in interface PathOccurrence
public void setPathName(String a_PathName) throws WTPropertyVetoException
setPathName
in interface PathOccurrence
a_PathName
-
WTPropertyVetoException
public boolean hasSubPath()
PathOccurrence
has a non-null sub
path.
hasSubPath
in interface PathOccurrence
public Vector getPathList()
Vector
of the PathOccurrence
objects
that make up this path. A root node in a path structure could just
return itself in a list of length 1.
getPathList
in interface PathOccurrence
public PathOccurrence getSubPath()
getSubPath
in interface PathOccurrence
public void setSubPath(PathOccurrence a_SubPath) throws WTPropertyVetoException, WTException
setSubPath
in interface PathOccurrence
a_SubPath
-
WTPropertyVetoException
WTException
public ObjectReference getSubPathReference()
getSubPathReference
in interface PathOccurrence
public void setSubPathReference(ObjectReference a_SubPathReference) throws WTPropertyVetoException
setSubPathReference
in interface PathOccurrence
a_SubPathReference
-
WTPropertyVetoException
private void subPathReferenceValidate(ObjectReference a_SubPathReference) throws WTPropertyVetoException
a_SubPathReference
-
WTPropertyVetoException
public PathOccurrenceMasterContext getContext()
getContext
in interface PathOccurrence
public void setContext(PathOccurrenceMasterContext a_Context) throws WTPropertyVetoException, WTException
setContext
in interface PathOccurrence
a_Context
-
WTPropertyVetoException
WTException
public ObjectReference getContextReference()
getContextReference
in interface PathOccurrence
public void setContextReference(ObjectReference a_ContextReference) throws WTPropertyVetoException
setContextReference
in interface PathOccurrence
a_ContextReference
-
WTPropertyVetoException
private void contextReferenceValidate(ObjectReference a_ContextReference) throws WTPropertyVetoException
a_ContextReference
-
WTPropertyVetoException
public UsesOccurrenceReference getUsesReference()
getUsesReference
in interface PathOccurrence
public void setUsesReference(UsesOccurrenceReference a_UsesReference) throws WTPropertyVetoException
setUsesReference
in interface PathOccurrence
a_UsesReference
-
WTPropertyVetoException
private void usesReferenceValidate(UsesOccurrenceReference a_UsesReference) throws WTPropertyVetoException
a_UsesReference
-
WTPropertyVetoException
public String getName()
Occurrence
is often referred to as a Reference
Designator.
getName
in interface Occurrence
public void setName(String a_Name) throws WTPropertyVetoException
Occurrence
is often referred to as a Reference
Designator.
setName
in interface Occurrence
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public Vector getOccurrenceDataVector()
Vector
can be populated with OccurrenceData
that is associated to an Occurrence
.
getOccurrenceDataVector
in interface Occurrence
public void setOccurrenceDataVector(Vector a_OccurrenceDataVector) throws WTPropertyVetoException
Vector
can be populated with OccurrenceData
that is associated to an Occurrence
.
setOccurrenceDataVector
in interface Occurrence
a_OccurrenceDataVector
-
WTPropertyVetoException
public String getIdentity()
getIdentity
in interface Persistable
public String getType()
getType
in interface Persistable
public void checkAttributes() throws InvalidAttributeException
checkAttributes
in interface Persistable
InvalidAttributeException
public PersistInfo getPersistInfo()
getPersistInfo
in interface Persistable
public void setPersistInfo(PersistInfo a_PersistInfo)
setPersistInfo
in interface Persistable
a_PersistInfo
- 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
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |