wt.part
Class PartType

java.lang.Object
  extended by wt.fc.EnumeratedType
      extended by wt.part.PartType
All Implemented Interfaces:
Serializable, Comparable, EnumeratedType, LocalizableMetadata, LocalizableMessage, Message

public final class PartType
extends EnumeratedType
implements Serializable

PartType is an enumerated type indicating whether a part is a separable or inseparable assembly or a component.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static PartType COMPONENT
          Indicates that the object is a component.
static PartType INSEPARABLE
          Indicates that the object can not be decomposed without damaging the object or causing other harm.
static PartType SEPARABLE
          Indicates that the object can be decomposed without damaging the object.
 
Fields inherited from interface wt.meta.EnumeratedType
DEFAULT_VALUE, ORDER, SELECTABLE
 
Method Summary
static PartType getPartTypeDefault()
          Returns the default value (instance) for the PartType set.
static PartType[] getPartTypeSet()
          Returns a copy of the set of valid values (instances) for the PartType class.
 EnumeratedType[] getValueSet()
          Returns a copy of the set of valid values (instances) for this instance, for the current user locale.
static PartType toPartType(String internal_value)
          Returns the PartType instance for the internal_value argument.
 
Methods inherited from class wt.fc.EnumeratedType
equals, getAbbreviatedDisplay, getDisplay, getDisplay, getFullDisplay, getLocalizedMessage, getLongDescription, getOrder, getSelectableValueSet, getShortDescription, getStringValue, getStringValue, hashCode, isDefaultValue, isDefaultValue, isSelectable, main, toEnumeratedType, toEnumeratedType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARABLE

public static final PartType SEPARABLE
Indicates that the object can be decomposed without damaging the object. Generally used by parts, it also indicates that the part is an assembly and can have sub-assemblies.

Supported API: true


INSEPARABLE

public static final PartType INSEPARABLE
Indicates that the object can not be decomposed without damaging the object or causing other harm. Generally used by parts, it indicates that the part is an assembly and is built from sub-assemblies, but can not be separated after it is built.

Supported API: true


COMPONENT

public static final PartType COMPONENT
Indicates that the object is a component. Generally used by parts, it indicates that the part is a component and is not built from sub-parts.

Supported API: true

Method Detail

toPartType

public static PartType toPartType(String internal_value)
                           throws WTInvalidParameterException
Returns the PartType instance for the internal_value argument.

Supported API: true

Parameters:
internal_value - The internal (persistent) value for a valid instance of PartType.
Returns:
PartType
Throws:
WTInvalidParameterException

getPartTypeDefault

public static PartType getPartTypeDefault()
Returns the default value (instance) for the PartType set.

Supported API: true

Returns:
PartType

getPartTypeSet

public static PartType[] getPartTypeSet()
Returns a copy of the set of valid values (instances) for the PartType class.

Supported API: true

Returns:
PartType[]

getValueSet

public EnumeratedType[] getValueSet()
Returns a copy of the set of valid values (instances) for this instance, for the current user locale.

Supported API: true

Specified by:
getValueSet in class EnumeratedType
Returns:
EnumeratedType[]