Class ESIAlternateUnitOfMeasureRenderer

java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.aum.ESIAlternateUnitOfMeasureRenderer
All Implemented Interfaces:
ESIRenderer

public class ESIAlternateUnitOfMeasureRenderer extends BasicESIRenderer
Renders alternate unit of measure for AUM Holder AUM Holder object holding the Alternate Unit of Measure information - for e.g., it could be a WTPartMaster instance.

Supported API: true

Extendable: true
  • Method Details

    • getAUMHolder

      protected AlternateUnitAssignable getAUMHolder()
      Gets the value of the attribute: aumHolder.

      Supported API: true
      Returns:
      AlternateUnitAssignable
    • getAUMHolderNumber

      protected String getAUMHolderNumber()
      Gets the value of the attribute: aumHolderNumber.

      Supported API: true
      Returns:
      String
    • getAUMHolderType

      protected String getAUMHolderType()
      Gets the value of the attribute: aumHolderType.

      Supported API: true
      Returns:
      String
    • buildGroups

      protected void buildGroups() throws ESIRendererException
      Queries AlternateUnitOfMeasure object associated with the holder and render it as current Alternate Unit Of Measure.
      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      ESIRendererException - When there is a exception while rendering AlternateUnitOfMeasure

      Supported API: true
      See Also:
    • adjustElement

      protected com.infoengine.object.factory.Element adjustElement(com.infoengine.object.factory.Element element, AlternateUnitOfMeasure aum)
      Allow subclasses to fix the contents of an element before it's added to the output group(s). Default behavior is to return the argument.

      Supported API: true
      Parameters:
      aum - - The AlternateUnitOfMeasure object to be mapped
      Returns:
      - The mapped aum element.
      Throws:
      ESIRendererException - When failed to map element for queried AlternateUnitOfMeasure object
    • setData

      public void setData(AlternateUnitAssignable aumHolder, String objectNumber, String type, Collection<ESITarget> targets) throws ESIRendererException
      Initializes this renderer instance appropriately.

      Supported API: true
      Parameters:
      aumHolder - The object holding the Alternate Unit of Measure information - for e.g., it could be a WTPartMaster instance.
      objectNumber - Number of the object holding AUM information.
      type - Type of the object holding AUM information - for e.g., it could be "com.ptc.windchill.esi.Part".
      targets - Collection of ESITarget objects to publish the AUM information to.
      Throws:
      ESIRendererException - When failed to set the state of the renderer before renderer starts rendering elements
    • validate

      protected void validate() throws ESIRendererException
      This method is expected to examine the attributes of the object and throw an exception if they are not set properly.
      Specified by:
      validate in class BasicESIRenderer
      Throws:
      ESIRendererException - When there is a exception while rendering AlternateUnitOfMeasure

      Supported API: true