Package wt.epm.build
Class EPMBuildRule
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.vc._VersionToVersionLink
wt.vc.VersionToVersionLink
wt.epm.build._EPMBuildRule
wt.epm.build.EPMBuildRule
- All Implemented Interfaces:
Externalizable,Serializable,wt.build._BuildRule,wt.build.BuildRule,wt.epm._EPMObject,EPMObject,wt.fc._BinaryLink,wt.fc._Link,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.archive._Archiveable,wt.fc.archive.Archiveable,BinaryLink,Link,NetFactor,ObjectMappable,Persistable,DisplayIdentification
@GenAsBinaryLink(superClass=VersionToVersionLink.class,interfaces={EPMObject.class,wt.build.BuildRule.class,wt.fc.archive.Archiveable.class},versions={5029331757957183836L,-2114693163325197590L},properties={@GeneratedProperty(name="uniqueID",type=long.class,supportedAPI=PUBLIC,javaDoc="A unique ID, automatically maintained by the system, that distinguishes one build rule from another.",constraints=@PropertyConstraints(changeable=FROZEN,required=true)),@GeneratedProperty(name="buildType",type=int.class,initialValue="EPMBuildRule.ALL_BUILD_ROLES",constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="attributesOnTarget",type=int.class,initialValue="EPMBuildRule.DEFAULT",accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="attributesOnLink",type=int.class,initialValue="EPMBuildRule.DEFAULT",accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="attributesOnOccurrence",type=int.class,initialValue="EPMBuildRule.DEFAULT",accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="attributesOnMaster",type=int.class,initialValue="EPMBuildRule.DEFAULT",accessors=@PropertyAccessors(getAccess=PRIVATE),constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="modelItemMasterReference",type=ObjectReference.class,constraints=@PropertyConstraints(required=true))},roleA=@GeneratedRole(name="buildSource",type=EPMDocument.class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),owner=false,cascade=false),roleB=@GeneratedRole(name="buildTarget",type=WTPart.class,supportedAPI=PUBLIC,accessors=@PropertyAccessors(getAccess=PRIVATE),cascade=false),tableProperties=@TableProperties(tableName="EPMBuildRule"))
public class EPMBuildRule
extends _EPMBuildRule
EPMBuildRule decides what data from the build source to publish to the
build target and how to publish them.
Use the newEPMBuildRule static factory method(s), not the
EPMBuildRule 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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Supported API: truestatic final int
Supported API: truestatic final int
Supported API: trueFields inherited from class wt.epm.build._EPMBuildRule
ATTRIBUTES_ON_LINK, ATTRIBUTES_ON_MASTER, ATTRIBUTES_ON_OCCURRENCE, ATTRIBUTES_ON_TARGET, BUILD_TYPE, EXTERNALIZATION_VERSION_UID, MODEL_ITEM_MASTER_REFERENCE, UNIQUE_IDFields inherited from class wt.vc._VersionToVersionLink
ROLE_AOBJECT_REF, ROLE_BOBJECT_REFFields inherited from class wt.fc._WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMPFields inherited from interface wt.fc._BinaryLink
ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLEFields inherited from interface wt.build._BuildRule
BUILD_SOURCE_ROLE, BUILD_TARGET_ROLEFields inherited from interface wt.fc._Persistable
PERSIST_INFOFields inherited from interface wt.fc.BinaryLink
ALL_ROLES, BOTH_ROLES, ROLE_AOBJECT_REF, ROLE_BOBJECT_REFFields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPEFields inherited from interface wt.epm.EPMObject
AUTHORING_APPLICATION, OWNER_APPLICATION, UNSPECIFIEDFields inherited from interface wt.fc.Persistable
IDENTITY, TYPE -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: AUTHORING_APPLICATION.Gets the value of the attribute: OWNER_APPLICATION.protected voidinitialize(EPMDocument container, ModelItem source, WTPart target, int buildType) Supports initialization, following construction of an instance.static EPMBuildRulenewEPMBuildRule(EPMDocument container, ModelItem source, WTPart target, int buildType) api to create build rule for ModelItem.static EPMBuildRulenewEPMBuildRule(EPMDocument source, WTPart target)
Supported API: truestatic EPMBuildRulenewEPMBuildRule(EPMDocument source, WTPart target, int buildType)
Supported API: trueMethods inherited from class wt.epm.build._EPMBuildRule
getBuildType, getClassInfo, getConceptualClassname, getModelItemMasterReference, getType, getUniqueID, readExternal, readExternal, readVersion, setBuildType, setModelItemMasterReference, setUniqueID, super_readExternal_EPMBuildRule, super_readVersion_EPMBuildRule, super_writeExternal_EPMBuildRule, writeExternal, writeExternalMethods inherited from class wt.vc.VersionToVersionLink
appendJoinCriteria, appendRoleCriteria, duplicate, getAllObjects, getJoinValues, getLinkInfo, getObject, getOtherObject, getRole, getRoleAObject, getRoleAObjectId, getRoleBObject, getRoleBObjectId, getRoleIdName, getRoleObject, initialize, setRoleAObject, setRoleAObjectRef, setRoleBObject, setRoleBObjectRef, setRoleObjectMethods inherited from class wt.vc._VersionToVersionLink
getRoleAObjectRef, getRoleBObjectRef, readVersion, super_readExternal_VersionToVersionLink, super_readVersion_VersionToVersionLink, super_writeExternal_VersionToVersionLinkMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, initialize, toStringMethods inherited from class wt.fc._WTObject
equals, getCreateTimestamp, getModifyTimestamp, getPersistInfo, hashCode, readVersion, setPersistInfoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface wt.fc._BinaryLink
getRoleAObjectRef, getRoleBObjectRef, setRoleAObjectRef, setRoleBObjectRefMethods inherited from interface wt.fc._Persistable
getPersistInfo, setPersistInfoMethods inherited from interface wt.fc.BinaryLink
getLinkInfo, getObject, getOtherObject, getRole, getRoleAObject, getRoleAObjectId, getRoleBObject, getRoleBObjectId, setRoleAObject, setRoleBObjectMethods inherited from interface wt.fc.Link
appendJoinCriteria, appendRoleCriteria, getAllObjects, getJoinValues, getRoleIdName, getRoleObject, setRoleObjectMethods inherited from interface wt.fc.Persistable
getIdentity
-
Field Details
-
BUILD_STRUCTURE
public static final int BUILD_STRUCTURE
Supported API: true- See Also:
-
BUILD_ATTRIBUTES
public static final int BUILD_ATTRIBUTES
Supported API: true- See Also:
-
CAD_REPRESENTATION
public static final int CAD_REPRESENTATION
Supported API: true- See Also:
-
-
Method Details
-
newEPMBuildRule
Supported API: true- Parameters:
source- source EPMDocumenttarget- target part- Returns:
- EPMBuildRule
- Throws:
WTException
-
newEPMBuildRule
public static EPMBuildRule newEPMBuildRule(EPMDocument source, WTPart target, int buildType) throws WTException
Supported API: true- Parameters:
source- source EPMDocumenttarget- target part.buildType- type of the build rule. Combination of the constants (BUILD_STRUCTURE, BUILD_ATTRIBUTES and CAD_REPRESENTATION).- Returns:
- EPMBuildRule
- Throws:
WTException
-
newEPMBuildRule
public static EPMBuildRule newEPMBuildRule(EPMDocument container, ModelItem source, WTPart target, int buildType) throws WTException api to create build rule for ModelItem. constructor to create EPMBuildRule between given 'source' ModelItem and 'target' WTPart. Actual build rule will be created between 'container' EPMDocument and 'target' part and modelItemMasterReference will be set to ModelItemMaster of the 'source' ModelItem.
Supported API: true- Parameters:
container- Container document dor the given 'source' modle itemsource- source model itemtarget- target part.buildType- type of the build rule. Combination of the constants (BUILD_STRUCTURE, BUILD_ATTRIBUTES and CAD_REPRESENTATION).- Returns:
- EPMBuildRule
- Throws:
WTException
-
initialize
protected void initialize(EPMDocument container, ModelItem source, WTPart target, int buildType) throws WTException Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
container- Container document dor the given 'source' modle itemsource- source model itemtarget- target part.buildType- type of the build rule. Combination of the constants (BUILD_STRUCTURE, BUILD_ATTRIBUTES and CAD_REPRESENTATION).- Throws:
WTException
-
getOwnerApplication
Gets the value of the attribute: OWNER_APPLICATION. Indicate that the named application owns the object.The parameter is an EPMApplicationType, so that any sort of checking can be done at run-time.
Supported API: true- Returns:
- EPMApplicationType
-
getAuthoringApplication
Gets the value of the attribute: AUTHORING_APPLICATION. Indicates that the named application authored the object.The parameter is an EPMAuthoringAppType, so that any sort of checking can be done at run-time.
Supported API: true- Returns:
- EPMAuthoringAppType
-