Class PiTranslatedEntity<T extends PiTranslatable,​E extends PiEntity>


  • @Beta
    public final class PiTranslatedEntity<T extends PiTranslatable,​E extends PiEntity>
    extends java.lang.Object
    Representation of the result of a PD-to-PI translation associated to a PI entity handle.
    • Constructor Summary

      Constructors 
      Constructor Description
      PiTranslatedEntity​(T original, E translated, PiHandle handle)
      Creates a new translated entity.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PiEntityType entityType()
      Returns the type of the translated entity.
      PiHandle handle()
      Returns the PI entity handle.
      T original()
      Returns the original PD entity.
      E translated()
      Returns the translated PI entity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PiTranslatedEntity

        public PiTranslatedEntity​(T original,
                                  E translated,
                                  PiHandle handle)
        Creates a new translated entity.
        Parameters:
        original - PD entity
        translated - PI entity
        handle - PI entity handle
    • Method Detail

      • entityType

        public final PiEntityType entityType()
        Returns the type of the translated entity.
        Returns:
        type of the translated entity
      • original

        public final T original()
        Returns the original PD entity.
        Returns:
        instance of PI translatable entity
      • translated

        public final E translated()
        Returns the translated PI entity.
        Returns:
        PI entity
      • handle

        public final PiHandle handle()
        Returns the PI entity handle.
        Returns:
        PI entity handle