com.ptc.windchill.mpml.resource
Class MPMPlant

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.enterprise.RevisionControlled
          extended by wt.part.WTPart
              extended by com.ptc.windchill.mpml.resource.MPMResource
                  extended by com.ptc.windchill.mpml.resource.MPMPlant
All Implemented Interfaces:
MPMCompatible, Externalizable, Serializable, AccessControlled, wt.access.AccessControlList, wt.access.AdHocControlled, IdentityAccessControlled, wt.access.PolicyAccessControlled, wt.access.SecurityLabeled, wt.admin.DomainAdministered, AnnotationTarget, wt.build.BuildTarget, Changeable2, ChangeableIfc, ConfigurationManageable, ConfiguredVersion, ContentHolder, EffManagedVersion, EffRecordable, wt.effectivity.EffectivityHolder, wt.effectivity.EffectivityManageable, wt.epm.workspaces.Trackable, wt.epm.workspaces.WorkspaceTrackable, Releasable, wt.fc.archive.Archiveable, wt.fc.archive.ArchiveablePrimary, wt.fc.BusinessInformation, wt.fc.importer.ImportTrackable, NetFactor, ObjectMappable, Persistable, wt.federation.FederatedLinkHolder, wt.federation.RemotelyLinkable, CabinetBased, Foldered, FolderEntry, wt.folder.FolderServiceManaged, IteratedFoldered, Genericizable, wt.generic.OVTemplate, wt.generic.Variant, wt.iba.value.IBAHolder, DisplayIdentification, Indexable, WTContained, IteratedLifeCycleManaged, wt.lifecycle.LifeCycleManaged, Lockable, wt.maturity.Promotable, wt.meeting.actionitem.IteratedSubjectOfActionItem, wt.meeting.actionitem.SubjectOfActionItem, wt.note.NoteHolder, Notifiable, PathOccurrenceContext, PathOwner, UsesOccurrenceContext, wt.org.electronicIdentity.ElectronicallySignable, OrganizationOwned, OrganizationOwnedVersion, Ownable, wt.part.Part, wt.part.PartVersion, wt.recent.RecentlyVisited, wt.representation.Representable, wt.representation.RepresentablesAndMasters, wt.representation.RepresentationContributor, wt.team.TeamManaged, wt.type.FlexTyped, wt.type.Typed, wt.ufid.Federatable, wt.util.depthLock._DepthLock000, wt.util.depthLock._DepthLock001, wt.util.depthLock._DepthLock002, wt.util.depthLock._DepthLock003, wt.util.depthLock._DepthLock004, wt.util.depthLock._DepthLock005, wt.util.depthLock._DepthLock006, wt.util.depthLock._DepthLock007, Baselineable, Iterated, OneOffVersioned, Versionable, Versioned, ViewManageable, Workable, wt.viewmarkup.Viewable, wt.workflow.forum.IteratedSubjectOfForum, wt.workflow.forum.SubjectOfForum, wt.workflow.notebook.IteratedSubjectOfNotebook, wt.workflow.notebook.SubjectOfNotebook, wt.workflow.requirement.RequirementsManageable

public class MPMPlant
extends MPMResource
implements Externalizable

Use the newMPMPlant static factory method(s), not the MPMPlant 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: true

See Also:
Serialized Form

Field Summary
static String CATEGORY
          Label for the attribute.
static String CITY
          Label for the attribute; city of the Plant

Supported API: true
static String COUNTRY
          Label for the attribute; country of the Plant

Supported API: true
static String EXTERNAL
          Label for the attribute.
static String STATES
          Label for the attribute; state of the Plant

Supported API: true
 
Fields inherited from class com.ptc.windchill.mpml.resource.MPMResource
DESCRIPTION
 
Fields inherited from class wt.part.WTPart
CONTRACT_NUMBER, DEFAULT_TRACE_CODE, DEFAULT_UNIT, END_ITEM, GENERIC_TYPE, JOB_AUTHORIZATION_NUMBER, NAME, NUMBER, PART_TYPE, PHASE, SOURCE
 
Fields inherited from class wt.enterprise.RevisionControlled
MASTER
 
Fields inherited from interface com.ptc.windchill.mpml.MPMCompatible
MASTER, MASTER_REFERENCE, NAME, NUMBER
 
Fields inherited from interface wt.org.OrganizationOwned
ORGANIZATION, ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIER
 
Fields inherited from interface wt.generic.Genericizable
MASTER, MASTER_REFERENCE
 
Method Summary
 MPMPlantType getCategory()
          Gets the value of the attribute: CATEGORY.
 String getCity()
          Gets the value of the attribute: CITY.
 String getCountry()
          Gets the value of the attribute: COUNTRY.
 String getStates()
          Gets the value of the attribute: STATES.
protected  void initialize(String number, String name)
          Supports initialization, following construction of an instance.
protected  void initialize(String number, String name, QuantityUnit defaultUnit)
          Supports initialization, following construction of an instance.
protected  void initialize(String number, String name, QuantityUnit defaultUnit, MPMPlantType category)
          Supports initialization, following construction of an instance.
 boolean isExternal()
          Gets the value of the attribute: EXTERNAL.
static MPMPlant newMPMPlant()
          Constructs a new MPMPlant..
static MPMPlant newMPMPlant(String number, String name)
          Constructs a new MPMPlant and sets the MPMPlantMaster's name and number to the passed-in values.
static MPMPlant newMPMPlant(String number, String name, QuantityUnit defaultUnit)
          Constructs a new MPMPlant and sets the MPMPlantMaster's name and number to the passed-in values.
static MPMPlant newMPMPlant(String number, String name, QuantityUnit defaultUnit, MPMPlantType category)
          Constructs a new MPMPlant and sets the MPMPlantMaster's name and number to the passed-in values.
 void setCategory(MPMPlantType a_Category)
          Sets the value of the attribute: CATEGORY.
 void setCity(String a_City)
          Sets the value of the attribute: CITY.
 void setCountry(String a_Country)
          Sets the value of the attribute: COUNTRY.
 void setExternal(boolean a_External)
          Sets the value of the attribute: EXTERNAL.
 void setMaster(Mastered a_Master)
          Sets the object for the association that plays role: MASTER.
 void setStates(String a_States)
          Sets the value of the attribute: STATES.
 
Methods inherited from class com.ptc.windchill.mpml.resource.MPMResource
getDescription, getName, getNumber, setDescription, setName, setNumber
 
Methods inherited from class wt.part.WTPart
getContractNumber, getDefaultTraceCode, getDefaultUnit, getGenericType, getIdentity, getJobAuthorizationNumber, getOrganization, getOrganizationCodingSystem, getOrganizationName, getOrganizationUniqueIdentifier, getPartType, getPhase, getSource, isEndItem, newWTPart, newWTPart, newWTPart, setContractNumber, setDefaultTraceCode, setDefaultUnit, setEndItem, setGenericType, setJobAuthorizationNumber, setOrganization, setPartType, setPhase, setSource
 
Methods inherited from class wt.enterprise.RevisionControlled
getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationNote, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, isLatestIteration, setControlBranch, setMasterReference
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ptc.windchill.mpml.MPMCompatible
getMaster, getMasterReference, setMasterReference
 
Methods inherited from interface wt.org.OrganizationOwnedVersion
getOrganizationReference
 
Methods inherited from interface wt.org.OrganizationOwned
getOrganization, getOrganizationCodingSystem, getOrganizationName, getOrganizationUniqueIdentifier
 
Methods inherited from interface wt.generic.Genericizable
getMaster, getMasterReference, setMasterReference
 

Field Detail

EXTERNAL

public static final String EXTERNAL
Label for the attribute.

Supported API: true

See Also:
Constant Field Values

CITY

public static final String CITY
Label for the attribute; city of the Plant

Supported API: true

See Also:
Constant Field Values

STATES

public static final String STATES
Label for the attribute; state of the Plant

Supported API: true

See Also:
Constant Field Values

COUNTRY

public static final String COUNTRY
Label for the attribute; country of the Plant

Supported API: true

See Also:
Constant Field Values

CATEGORY

public static final String CATEGORY
Label for the attribute.

Supported API: true

See Also:
Constant Field Values
Method Detail

isExternal

public boolean isExternal()
Gets the value of the attribute: EXTERNAL.

Supported API: true

Returns:
boolean

setExternal

public void setExternal(boolean a_External)
                 throws WTPropertyVetoException
Sets the value of the attribute: EXTERNAL.

Supported API: true

Parameters:
a_External -
Throws:
WTPropertyVetoException

getCity

public String getCity()
Gets the value of the attribute: CITY. city of the Plant

Supported API: true

Returns:
String

setCity

public void setCity(String a_City)
             throws WTPropertyVetoException
Sets the value of the attribute: CITY. city of the Plant

Supported API: true

Parameters:
a_City -
Throws:
WTPropertyVetoException

getStates

public String getStates()
Gets the value of the attribute: STATES. state of the Plant

Supported API: true

Returns:
String

setStates

public void setStates(String a_States)
               throws WTPropertyVetoException
Sets the value of the attribute: STATES. state of the Plant

Supported API: true

Parameters:
a_States -
Throws:
WTPropertyVetoException

getCountry

public String getCountry()
Gets the value of the attribute: COUNTRY. country of the Plant

Supported API: true

Returns:
String

setCountry

public void setCountry(String a_Country)
                throws WTPropertyVetoException
Sets the value of the attribute: COUNTRY. country of the Plant

Supported API: true

Parameters:
a_Country -
Throws:
WTPropertyVetoException

getCategory

public MPMPlantType getCategory()
Gets the value of the attribute: CATEGORY.

Supported API: true

Returns:
MPMPlantType

setCategory

public void setCategory(MPMPlantType a_Category)
                 throws WTPropertyVetoException
Sets the value of the attribute: CATEGORY.

Supported API: true

Parameters:
a_Category -
Throws:
WTPropertyVetoException

setMaster

public void setMaster(Mastered a_Master)
               throws WTPropertyVetoException,
                      WTException
Sets the object for the association that plays role: MASTER.

Supported API: true

Specified by:
setMaster in interface MPMCompatible
Specified by:
setMaster in interface ConfiguredVersion
Specified by:
setMaster in interface Genericizable
Specified by:
setMaster in interface Iterated
Overrides:
setMaster in class MPMResource
Parameters:
a_Master -
Throws:
WTPropertyVetoException
WTException
See Also:
Mastered

newMPMPlant

public static MPMPlant newMPMPlant()
                            throws WTException
Constructs a new MPMPlant..

Supported API: true

Returns:
MPMPlant
Throws:
WTException

newMPMPlant

public static MPMPlant newMPMPlant(String number,
                                   String name,
                                   QuantityUnit defaultUnit)
                            throws WTException
Constructs a new MPMPlant and sets the MPMPlantMaster's name and number to the passed-in values.

Supported API: true

Parameters:
number -
name -
defaultUnit -
Returns:
MPMPlant
Throws:
WTException

initialize

protected void initialize(String number,
                          String name,
                          QuantityUnit defaultUnit)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Overrides:
initialize in class WTPart
Parameters:
number -
name -
defaultUnit -
Throws:
WTException

newMPMPlant

public static MPMPlant newMPMPlant(String number,
                                   String name)
                            throws WTException
Constructs a new MPMPlant and sets the MPMPlantMaster's name and number to the passed-in values.

Supported API: true

Parameters:
number -
name -
Returns:
MPMPlant
Throws:
WTException

initialize

protected void initialize(String number,
                          String name)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Overrides:
initialize in class WTPart
Parameters:
number -
name -
Throws:
WTException

newMPMPlant

public static MPMPlant newMPMPlant(String number,
                                   String name,
                                   QuantityUnit defaultUnit,
                                   MPMPlantType category)
                            throws WTException
Constructs a new MPMPlant and sets the MPMPlantMaster's name and number to the passed-in values.

Supported API: true

Parameters:
number -
name -
defaultUnit -
category -
Returns:
MPMPlant
Throws:
WTException

initialize

protected void initialize(String number,
                          String name,
                          QuantityUnit defaultUnit,
                          MPMPlantType category)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
number -
name -
defaultUnit -
category -
Throws:
WTException