com.ptc.windchill.mpml.resource
Class MPMWorkCenter

java.lang.Object
  extended by MPMOperationAssignableResource
      extended by com.ptc.windchill.mpml.resource.MPMWorkCenter
All Implemented Interfaces:
Externalizable, Serializable

public class MPMWorkCenter
extends MPMOperationAssignableResource
implements Externalizable

Use the newMPMWorkCenter static factory method(s), not the MPMWorkCenter 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


Field Summary
static String CATEGORY
          Label for the attribute.
static String ERP_VALIDATION_CODE
          Label for the attribute.
static String EXTERNAL
          Label for the attribute.
 
Method Summary
 MPMWorkCenterType getCategory()
          Gets the value of the attribute: CATEGORY.
 MPMERPValidationCode getErpValidationCode()
          Gets the object for the association that plays role: ERP_VALIDATION_CODE.
protected  void initialize(String number, String name)
          Supports initialization, following construction of an instance.
protected  void initialize(String number, String name, MPMWorkCenterType category)
          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, MPMWorkCenterType category)
          Supports initialization, following construction of an instance.
 boolean isExternal()
          Gets the value of the attribute: EXTERNAL.
static MPMWorkCenter newMPMWorkCenter()
          Constructs a new MPMWorkCenter.
static MPMWorkCenter newMPMWorkCenter(String number, String name)
          Constructs a new MPMWorkCenter and sets the MPMWorkCenterMaster's name and number to the passed-in values.
static MPMWorkCenter newMPMWorkCenter(String number, String name, MPMWorkCenterType category)
          Constructs a new MPMWorkCenter and sets the MPMWorkCenterMaster's name and number to the passed-in values.
static MPMWorkCenter newMPMWorkCenter(String number, String name, QuantityUnit defaultUnit)
          Constructs a new MPMWorkCenter and sets the MPMWorkCenterMaster's name and number to the passed-in values.
static MPMWorkCenter newMPMWorkCenter(String number, String name, QuantityUnit defaultUnit, MPMWorkCenterType category)
          Constructs a new MPMWorkCenter and sets the MPMWorkCenterMaster's name and number to the passed-in values.
 void setCategory(MPMWorkCenterType a_Category)
          Sets the value of the attribute: CATEGORY.
 void setErpValidationCode(MPMERPValidationCode a_ErpValidationCode)
          Sets the object for the association that plays role: ERP_VALIDATION_CODE.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTERNAL

public static final String EXTERNAL
Label for the attribute.

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

ERP_VALIDATION_CODE

public static final String ERP_VALIDATION_CODE
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

getCategory

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

Supported API: true

Returns:
MPMWorkCenterType

setCategory

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

Supported API: true

Parameters:
a_Category -
Throws:
WTPropertyVetoException

getErpValidationCode

public MPMERPValidationCode getErpValidationCode()
Gets the object for the association that plays role: ERP_VALIDATION_CODE.

Supported API: true

Returns:
MPMERPValidationCode

setErpValidationCode

public void setErpValidationCode(MPMERPValidationCode a_ErpValidationCode)
Sets the object for the association that plays role: ERP_VALIDATION_CODE.

Supported API: true

Parameters:
a_ErpValidationCode -

setMaster

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

Supported API: true

Parameters:
a_Master -
Throws:
WTPropertyVetoException
WTException

newMPMWorkCenter

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

Supported API: true

Parameters:
number -
name -
Returns:
MPMWorkCenter
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

Parameters:
number -
name -
Throws:
WTException

newMPMWorkCenter

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

Supported API: true

Parameters:
number -
name -
defaultUnit -
Returns:
MPMWorkCenter
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

Parameters:
number -
name -
defaultUnit -
Throws:
WTException

newMPMWorkCenter

public static MPMWorkCenter newMPMWorkCenter()
                                      throws WTException
Constructs a new MPMWorkCenter.

Supported API: true

Returns:
MPMWorkCenter
Throws:
WTException

newMPMWorkCenter

public static MPMWorkCenter newMPMWorkCenter(String number,
                                             String name,
                                             QuantityUnit defaultUnit,
                                             MPMWorkCenterType category)
                                      throws WTException
Constructs a new MPMWorkCenter and sets the MPMWorkCenterMaster's name and number to the passed-in values.

Supported API: true

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

initialize

protected void initialize(String number,
                          String name,
                          QuantityUnit defaultUnit,
                          MPMWorkCenterType 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

newMPMWorkCenter

public static MPMWorkCenter newMPMWorkCenter(String number,
                                             String name,
                                             MPMWorkCenterType category)
                                      throws WTException
Constructs a new MPMWorkCenter and sets the MPMWorkCenterMaster's name and number to the passed-in values.

Supported API: true

Parameters:
number -
name -
category -
Returns:
MPMWorkCenter
Throws:
WTException

initialize

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

Supported API: true

Parameters:
number -
name -
category -
Throws:
WTException