|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.fc.ObjectToObjectLink
wt.epm.structure.EPMReferenceLink
Associates an EPMDocument with a WTDocument or another EPMDocument.
An IteratedReferenceLink associates an Iterated object with a Mastered object. Logically, an EPMReferenceLink associates an EPMDocument with either a WTDocumentMaster or an EPMDocumentMaster. Since the DocumentMaster interface does not extend Mastered, an EPMReferenceLink must associate an EPMDocument with a Master.
Use the newEPMReferenceLink
static factory method(s), not
the EPMReferenceLink
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 int |
AS_STORED_CHILD_NAME_UPPER_LIMIT
|
private String |
asStoredChildName
|
private static String |
CLASSNAME
|
private int |
depType
|
private static String |
EPMRESOURCE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private boolean |
hasIBAValues
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static long |
R70_EXTERNALIZATION_VERSION_UID
|
static String |
REFERENCED_BY_ROLE
Label for the attribute. |
static String |
REFERENCES_ROLE
Label for the attribute. |
private boolean |
required
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private AttributeContainer |
theAttributeContainer
|
private TypeDefinitionReference |
typeDefinitionReference
|
private static int |
UNIQUE_NDID_UPPER_LIMIT
|
private long |
uniqueLinkID
|
private String |
uniqueNDId
|
Fields inherited from class wt.fc.ObjectToObjectLink |
ROLE_AOBJECT_REF, ROLE_BOBJECT_REF |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.epm.structure.EPMDependencyLink |
AS_STORED_CHILD_NAME, DEP_TYPE, HAS_IBAVALUES, REQUIRED, UNIQUE_LINK_ID, UNIQUE_NDID |
Fields inherited from interface wt.epm.EPMObject |
AUTHORING_APPLICATION, OWNER_APPLICATION, UNSPECIFIED |
Fields inherited from interface wt.type.Typed |
TYPE_DEFINITION_REFERENCE |
Fields inherited from interface wt.iba.value.IBAHolder |
ATTRIBUTE_CONTAINER |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.fc.BinaryLink |
ALL_ROLES, BOTH_ROLES, ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
EPMReferenceLink()
|
Method Summary | |
private void |
asStoredChildNameValidate(String a_AsStoredChildName)
|
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. |
String |
getAsStoredChildName()
Gets the value of the attribute: AS_STORED_CHILD_NAME. |
AttributeContainer |
getAttributeContainer()
Gets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
EPMAuthoringAppType |
getAuthoringApplication()
Gets the value of the attribute: AUTHORING_APPLICATION. |
String |
getConceptualClassname()
Deprecated. |
int |
getDepType()
Gets the value of the attribute: DEP_TYPE. |
EPMApplicationType |
getOwnerApplication()
Gets the value of the attribute: OWNER_APPLICATION. |
EPMDocument |
getReferencedBy()
Gets the object for the association that plays role: REFERENCED_BY_ROLE. |
DocumentMaster |
getReferences()
Gets the object for the association that plays role: REFERENCES_ROLE. |
TypeDefinitionReference |
getTypeDefinitionReference()
Gets the object for the association that plays role: TYPE_DEFINITION_REFERENCE. |
long |
getUniqueLinkID()
Gets the value of the attribute: UNIQUE_LINK_ID. |
String |
getUniqueNDId()
Gets the value of the attribute: UNIQUE_NDID. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(EPMDocument referencedBy,
DocumentMaster references)
|
protected void |
initialize(EPMDocument referencedBy,
DocumentMaster references,
String asStoredChildName,
int depType)
Supports initialization, following construction of an instance. |
boolean |
isHasIBAValues()
Gets the value of the attribute: HAS_IBAVALUES. |
boolean |
isRequired()
Gets the value of the attribute: REQUIRED. |
static EPMReferenceLink |
newEPMReferenceLink(EPMDocument referencedBy,
DocumentMaster references)
Constructs an EPMReferenceLink. |
static EPMReferenceLink |
newEPMReferenceLink(EPMDocument referencedBy,
DocumentMaster references,
String asStoredChildName,
int depType)
Constructs an EPMReferenceLink. |
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(EPMReferenceLink thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAsStoredChildName(String a_AsStoredChildName)
Sets the value of the attribute: AS_STORED_CHILD_NAME. |
void |
setAttributeContainer(AttributeContainer a_AttributeContainer)
Sets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
void |
setDepType(int a_DepType)
Sets the value of the attribute: DEP_TYPE. |
protected void |
setHasIBAValues(boolean a_HasIBAValues)
Sets the value of the attribute: HAS_IBAVALUES. |
void |
setReferencedBy(EPMDocument referencedBy)
Sets the object for the association that plays role: REFERENCED_BY_ROLE. |
void |
setReferences(DocumentMaster references)
Sets the object for the association that plays role: REFERENCES_ROLE. |
void |
setRequired(boolean a_Required)
Sets the value of the attribute: REQUIRED. |
void |
setTypeDefinitionReference(TypeDefinitionReference a_TypeDefinitionReference)
Sets the object for the association that plays role: TYPE_DEFINITION_REFERENCE. |
void |
setUniqueLinkID(long a_UniqueLinkID)
Sets the value of the attribute: UNIQUE_LINK_ID. |
void |
setUniqueNDId(String a_UniqueNDId)
Sets the value of the attribute: UNIQUE_NDID. |
private void |
typeDefinitionReferenceValidate(TypeDefinitionReference a_TypeDefinitionReference)
|
private void |
uniqueLinkIDValidate(long a_UniqueLinkID)
|
private void |
uniqueNDIdValidate(String a_UniqueNDId)
|
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.fc.WTObject |
finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String REFERENCED_BY_ROLE
public static final String REFERENCES_ROLE
private static int AS_STORED_CHILD_NAME_UPPER_LIMIT
private String asStoredChildName
private int depType
private boolean required
private long uniqueLinkID
private static int UNIQUE_NDID_UPPER_LIMIT
private String uniqueNDId
private boolean hasIBAValues
private TypeDefinitionReference typeDefinitionReference
private AttributeContainer theAttributeContainer
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String EPMRESOURCE
public static final long R70_EXTERNALIZATION_VERSION_UID
Constructor Detail |
public EPMReferenceLink()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ObjectToObjectLink
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class ObjectToObjectLink
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EPMReferenceLink 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 ObjectToObjectLink
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 ObjectToObjectLink
input
-
SQLException
DatastoreException
public EPMDocument getReferencedBy()
public void setReferencedBy(EPMDocument referencedBy) throws WTPropertyVetoException
referencedBy
-
WTPropertyVetoException
public DocumentMaster getReferences()
public void setReferences(DocumentMaster references) throws WTPropertyVetoException
references
-
WTPropertyVetoException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public static EPMReferenceLink newEPMReferenceLink(EPMDocument referencedBy, DocumentMaster references, String asStoredChildName, int depType) throws WTException
By default, this constructor sets
'required' to false.
Supported API: true
referencedBy
- references
- asStoredChildName
- depType
-
WTException
protected void initialize(EPMDocument referencedBy, DocumentMaster references, String asStoredChildName, int depType) throws WTException
referencedBy
- references
- asStoredChildName
- depType
-
WTException
public static EPMReferenceLink newEPMReferenceLink(EPMDocument referencedBy, DocumentMaster references) throws WTException
By default, this constructor sets
'asStoredChildName' to null,
'depType' to UNSPECIFIED and
'required' to false.
Supported API: true
referencedBy
- references
-
WTException
public String getAsStoredChildName()
getAsStoredChildName
in interface EPMDependencyLink
public void setAsStoredChildName(String a_AsStoredChildName) throws WTPropertyVetoException
setAsStoredChildName
in interface EPMDependencyLink
a_AsStoredChildName
-
WTPropertyVetoException
private void asStoredChildNameValidate(String a_AsStoredChildName) throws WTPropertyVetoException
a_AsStoredChildName
-
WTPropertyVetoException
public int getDepType()
getDepType
in interface EPMDependencyLink
public void setDepType(int a_DepType) throws WTPropertyVetoException
setDepType
in interface EPMDependencyLink
a_DepType
-
WTPropertyVetoException
public boolean isRequired()
isRequired
in interface EPMDependencyLink
public void setRequired(boolean a_Required) throws WTPropertyVetoException
setRequired
in interface EPMDependencyLink
a_Required
-
WTPropertyVetoException
public long getUniqueLinkID()
getUniqueLinkID
in interface EPMDependencyLink
public void setUniqueLinkID(long a_UniqueLinkID) throws WTPropertyVetoException
setUniqueLinkID
in interface EPMDependencyLink
a_UniqueLinkID
-
WTPropertyVetoException
private void uniqueLinkIDValidate(long a_UniqueLinkID) throws WTPropertyVetoException
a_UniqueLinkID
-
WTPropertyVetoException
public String getUniqueNDId()
getUniqueNDId
in interface EPMDependencyLink
public void setUniqueNDId(String a_UniqueNDId) throws WTPropertyVetoException
setUniqueNDId
in interface EPMDependencyLink
a_UniqueNDId
-
WTPropertyVetoException
private void uniqueNDIdValidate(String a_UniqueNDId) throws WTPropertyVetoException
a_UniqueNDId
-
WTPropertyVetoException
public boolean isHasIBAValues()
The reason for this flag is to improve performance by significantly
reducing the number of IBA related queries. Querying for IBA values
is expensive. In practice, only a very small percentage of EPM Dependency
links will ever have IBA values.
Supported API: false
isHasIBAValues
in interface EPMDependencyLink
protected void setHasIBAValues(boolean a_HasIBAValues)
The reason for this flag is to improve performance by significantly
reducing the number of IBA related queries. Querying for IBA values
is expensive. In practice, only a very small percentage of EPM Dependency
links will ever have IBA values.
Supported API: false
a_HasIBAValues
- public EPMApplicationType getOwnerApplication()
The parameter is an EPMApplicationType, so that any sort of checking
can be done at run-time.
Supported API: true
getOwnerApplication
in interface EPMObject
public EPMAuthoringAppType getAuthoringApplication()
The parameter is an EPMAuthoringAppType, so that any sort of checking
can be done at run-time.
Supported API: true
getAuthoringApplication
in interface EPMObject
public void checkAttributes() throws InvalidAttributeException
In particular, this must check that the modifications to the object
were made by an approved application.
Supported API: true
checkAttributes
in interface EPMObject
checkAttributes
in class WTObject
InvalidAttributeException
public TypeDefinitionReference getTypeDefinitionReference()
getTypeDefinitionReference
in interface Typed
public void setTypeDefinitionReference(TypeDefinitionReference a_TypeDefinitionReference) throws WTPropertyVetoException
setTypeDefinitionReference
in interface Typed
a_TypeDefinitionReference
-
WTPropertyVetoException
private void typeDefinitionReferenceValidate(TypeDefinitionReference a_TypeDefinitionReference) throws WTPropertyVetoException
a_TypeDefinitionReference
-
WTPropertyVetoException
public AttributeContainer getAttributeContainer()
getAttributeContainer
in interface IBAHolder
public void setAttributeContainer(AttributeContainer a_AttributeContainer)
setAttributeContainer
in interface IBAHolder
a_AttributeContainer
- 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 ObjectToObjectLink
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 ObjectToObjectLink
protected void initialize(EPMDocument referencedBy, DocumentMaster references) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |