Package org.ivoa.dm.proposal.prop
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Polygon, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected List<org.ivoa.dm.stc.coords.EquatorialPoint>
an array of points.... -
Constructor Summary
ConstructorDescriptionPolygon()
Creates a new Polygonfull parameter constructor.Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
make a clone of the object taking into account current polymorhic type.static Polygon
create a Polygon in functional builder style.void
List<org.ivoa.dm.stc.coords.EquatorialPoint>
Returns points 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
Set points Attribute.void
updateUsing
(Polygon other) Update this object with the content of the given object.withPoints
(List<org.ivoa.dm.stc.coords.EquatorialPoint> pPoints) fluent setter for points 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
-
points
@VoDml(id="proposal:Polygon.points", role=attribute, type="coords:EquatorialPoint", typeRole=dataType) protected List<org.ivoa.dm.stc.coords.EquatorialPoint> pointsan array of points.... : Attribute points : multiplicity 0..*
-
-
Constructor Details
-
Polygon
public Polygon()Creates a new Polygon -
Polygon
full parameter constructor.- Parameters:
points
- an array of points....name
- .
-
Polygon
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
Polygon
Constructor from supertype instance.- Parameters:
superinstance
- The supertype.points
- an array of points....
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type. -
updateUsing
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
Returns points Attribute.- Returns:
- points Attribute
-
setPoints
Set points Attribute.- Parameters:
pPoints
- value to set
-
withPoints
fluent setter for points Attribute.- Parameters:
pPoints
- value to set- Returns:
- Polygon
-
createPolygon
create a Polygon in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad() -
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classField
-