Class Polygon

java.lang.Object
org.ivoa.dm.proposal.prop.Field
org.ivoa.dm.proposal.prop.Polygon
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:Polygon", role=objectType) public class Polygon extends Field implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Polygonal map. objectType: Polygon
  • Field Details

    • points

      @VoDml(id="proposal:Polygon.points", role=attribute, type="coords:EquatorialPoint", typeRole=dataType) protected List<org.ivoa.dm.stc.coords.EquatorialPoint> points
      an array of points.... : Attribute points : multiplicity 0..*
  • Constructor Details

    • Polygon

      public Polygon()
      Creates a new Polygon
    • Polygon

      public Polygon(List<org.ivoa.dm.stc.coords.EquatorialPoint> points, String name)
      full parameter constructor.
      Parameters:
      points - an array of points....
      name - .
    • Polygon

      public Polygon(Polygon other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • Polygon

      public Polygon(Field superinstance, List<org.ivoa.dm.stc.coords.EquatorialPoint> points)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      points - an array of points....
  • Method Details

    • copyMe

      public Field copyMe()
      Specified by:
      copyMe in class Field
    • updateUsing

      public void updateUsing(Polygon other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getPoints

      public List<org.ivoa.dm.stc.coords.EquatorialPoint> getPoints()
      Returns points Attribute
      Returns:
      points Attribute
    • setPoints

      public void setPoints(List<org.ivoa.dm.stc.coords.EquatorialPoint> pPoints)
      Defines points Attribute
      Parameters:
      pPoints - value to set
    • withPoints

      public Polygon withPoints(List<org.ivoa.dm.stc.coords.EquatorialPoint> pPoints)
    • createPolygon

      public static Polygon createPolygon(Consumer<Polygon.PolygonBuilder> f)
      create a Polygon in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class Field
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      jpaClone in class Field
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class Field