Package wt.eff.format

Class EffState

java.lang.Object
wt.eff.format.EffState
All Implemented Interfaces:
Serializable

public final class EffState extends Object implements Serializable
A class that is designed to hold the state associated while processing one or many effectivity statements.

Instances of EffState are designed and treated as immutable, once initialized during construction (where the class invariant is established). Hence they can be safely shared and are thread-safe.


Supported API: true

Extendable: false
Since:
Windchill 9.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Reference to the windchill WTContainer the current use case or the its context occurs/resides in.
    (Optional) An object reference to the effectivity context object if supported by the effectivity type.
    final EffType
    The effectivity type being considered as part of the transaction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EffState(EffType effType, ObjectReference contextObjRef, WTContainerRef containerRef)
    Constructs an EffState instance with the provided arguments.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the value of the attribute: containerRef; Reference to the windchill WTContainer the current use case or the its context occurs/resides in.
    Gets the value of the attribute: contextObjRef; (Optional) An object reference to the effectivity context object if supported by the effectivity type.
    final EffType
    Gets the value of the attribute: effType; The effectivity type being considered as part of the transaction.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • effType

      public final EffType effType
      The effectivity type being considered as part of the transaction.

      Supported API: true
    • contextObjRef

      public final ObjectReference contextObjRef
      (Optional) An object reference to the effectivity context object if supported by the effectivity type. In the case of creating part instances, the context object is the traceable part identified with the part instance.

      Supported API: true
    • containerRef

      public final WTContainerRef containerRef
      Reference to the windchill WTContainer the current use case or the its context occurs/resides in.

      Supported API: true
  • Constructor Details

    • EffState

      public EffState(EffType effType, ObjectReference contextObjRef, WTContainerRef containerRef)
      Constructs an EffState instance with the provided arguments.

      Supported API: true
      Parameters:
      effType - (Required) The effectivity type being considered as part of the transaction.
      contextObjRef - (Optional) An object reference to the effectivity context object if supported by the effectivity type. In the case of creating part instances, the context object is the traceable part identified with the part instance.
      containerRef - (Required) Reference to the windchill container the current use case or the its context occurs/resides in.
      Throws:
      NullPointerException - if either the required effType or containerRef arguments are null.
  • Method Details

    • getEffType

      public final EffType getEffType()
      Gets the value of the attribute: effType; The effectivity type being considered as part of the transaction.

      Supported API: true
      Returns:
      EffType
    • getContextObjRef

      public final ObjectReference getContextObjRef()
      Gets the value of the attribute: contextObjRef; (Optional) An object reference to the effectivity context object if supported by the effectivity type. In the case of creating part instances, the context object is the traceable part identified with the part instance.

      Supported API: true
      Returns:
      ObjectReference
    • getContainerRef

      public final WTContainerRef getContainerRef()
      Gets the value of the attribute: containerRef; Reference to the windchill WTContainer the current use case or the its context occurs/resides in.

      Supported API: true
      Returns:
      WTContainerRef