Class Ellipse

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

@Entity @VoDml(id="proposal:Ellipse", role=objectType) public class Ellipse extends Field implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
Specialization of a Field for an elliptical map. objectType: Ellipse
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A builder class for Ellipse, mainly for use in the functional builder pattern.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.ivoa.dm.ivoa.RealQuantity
    .
    protected org.ivoa.dm.ivoa.RealQuantity
    .
    protected org.ivoa.dm.ivoa.RealQuantity
    .

    Fields inherited from class org.ivoa.dm.proposal.prop.Field

    _id, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new Ellipse
    Ellipse(org.ivoa.dm.ivoa.RealQuantity semiMajor, org.ivoa.dm.ivoa.RealQuantity semiMinor, org.ivoa.dm.ivoa.RealQuantity pAMajor, String name)
    full parameter constructor.
    Copy Constructor.
    Ellipse(Field superinstance, org.ivoa.dm.ivoa.RealQuantity semiMajor, org.ivoa.dm.ivoa.RealQuantity semiMinor, org.ivoa.dm.ivoa.RealQuantity pAMajor)
    Constructor from supertype instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    make a clone of the object taking into account current polymorhic type.
    static Ellipse
    create a Ellipse in functional builder style.
    void
     
    org.ivoa.dm.ivoa.RealQuantity
    Returns pAMajor Attribute.
    org.ivoa.dm.ivoa.RealQuantity
    Returns semiMajor Attribute.
    org.ivoa.dm.ivoa.RealQuantity
    Returns semiMinor Attribute.
    void
    persistRefs(jakarta.persistence.EntityManager _em)
    Deprecated.
    generally better to use the model level reference persistence as only this can deal with "contained" references properly.
    void
    setPAMajor(org.ivoa.dm.ivoa.RealQuantity pPAMajor)
    Set pAMajor Attribute.
    void
    setSemiMajor(org.ivoa.dm.ivoa.RealQuantity pSemiMajor)
    Set semiMajor Attribute.
    void
    setSemiMinor(org.ivoa.dm.ivoa.RealQuantity pSemiMinor)
    Set semiMinor Attribute.
    void
    Update this object with the content of the given object.
    withPAMajor(org.ivoa.dm.ivoa.RealQuantity pPAMajor)
    fluent setter for pAMajor Attribute.
    withSemiMajor(org.ivoa.dm.ivoa.RealQuantity pSemiMajor)
    fluent setter for semiMajor Attribute.
    withSemiMinor(org.ivoa.dm.ivoa.RealQuantity pSemiMinor)
    fluent setter for semiMinor Attribute.

    Methods inherited from class org.ivoa.dm.proposal.prop.Field

    getId, getName, getXmlId, hasNaturalKey, setName, setXmlId, updateUsing, withName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType

    getId

    Methods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement

    getXmlId, hasNaturalKey, setXmlId
  • Field Details

    • semiMajor

      @VoDml(id="proposal:Ellipse.semiMajor", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity semiMajor
      . : Attribute semiMajor : multiplicity 1
    • semiMinor

      @VoDml(id="proposal:Ellipse.semiMinor", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity semiMinor
      . : Attribute semiMinor : multiplicity 1
    • pAMajor

      @VoDml(id="proposal:Ellipse.pAMajor", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity pAMajor
      . : Attribute pAMajor : multiplicity 1
  • Constructor Details

    • Ellipse

      public Ellipse()
      Creates a new Ellipse
    • Ellipse

      public Ellipse(org.ivoa.dm.ivoa.RealQuantity semiMajor, org.ivoa.dm.ivoa.RealQuantity semiMinor, org.ivoa.dm.ivoa.RealQuantity pAMajor, String name)
      full parameter constructor.
      Parameters:
      semiMajor - .
      semiMinor - .
      pAMajor - .
      name - .
    • Ellipse

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

      public Ellipse(Field superinstance, org.ivoa.dm.ivoa.RealQuantity semiMajor, org.ivoa.dm.ivoa.RealQuantity semiMinor, org.ivoa.dm.ivoa.RealQuantity pAMajor)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      semiMajor - .
      semiMinor - .
      pAMajor - .
  • Method Details

    • copyMe

      public Field copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class Field
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(Ellipse 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.
    • getSemiMajor

      public org.ivoa.dm.ivoa.RealQuantity getSemiMajor()
      Returns semiMajor Attribute.
      Returns:
      semiMajor Attribute
    • setSemiMajor

      public void setSemiMajor(org.ivoa.dm.ivoa.RealQuantity pSemiMajor)
      Set semiMajor Attribute.
      Parameters:
      pSemiMajor - value to set
    • withSemiMajor

      public Ellipse withSemiMajor(org.ivoa.dm.ivoa.RealQuantity pSemiMajor)
      fluent setter for semiMajor Attribute.
      Parameters:
      pSemiMajor - value to set
      Returns:
      Ellipse
    • getSemiMinor

      public org.ivoa.dm.ivoa.RealQuantity getSemiMinor()
      Returns semiMinor Attribute.
      Returns:
      semiMinor Attribute
    • setSemiMinor

      public void setSemiMinor(org.ivoa.dm.ivoa.RealQuantity pSemiMinor)
      Set semiMinor Attribute.
      Parameters:
      pSemiMinor - value to set
    • withSemiMinor

      public Ellipse withSemiMinor(org.ivoa.dm.ivoa.RealQuantity pSemiMinor)
      fluent setter for semiMinor Attribute.
      Parameters:
      pSemiMinor - value to set
      Returns:
      Ellipse
    • getPAMajor

      public org.ivoa.dm.ivoa.RealQuantity getPAMajor()
      Returns pAMajor Attribute.
      Returns:
      pAMajor Attribute
    • setPAMajor

      public void setPAMajor(org.ivoa.dm.ivoa.RealQuantity pPAMajor)
      Set pAMajor Attribute.
      Parameters:
      pPAMajor - value to set
    • withPAMajor

      public Ellipse withPAMajor(org.ivoa.dm.ivoa.RealQuantity pPAMajor)
      fluent setter for pAMajor Attribute.
      Parameters:
      pPAMajor - value to set
      Returns:
      Ellipse
    • createEllipse

      public static Ellipse createEllipse(Consumer<Ellipse.EllipseBuilder> f)
      create a Ellipse 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
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class Field