Package org.ivoa.dm.adqlgeom
Class Polygon
java.lang.Object
org.ivoa.dm.adqlgeom.Shape
org.ivoa.dm.adqlgeom.Polygon
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="adqlgeom:Polygon",
role=dataType)
public class Polygon
extends Shape
implements org.ivoa.vodml.jpa.JPAManipulations
a simple polygon region on the sky defined a sequence of points connected by great-circle segments.
dataType: Polygon
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Polygon, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static Polygoncreate a Polygon in functional builder style.voidPoint[]Returns points Attribute.voidSet points Attribute.voidupdateUsing(Polygon other) Update this object with the content of the given object.withPoints(Point[] pPoints) fluent setter for points Attribute.Methods inherited from class org.ivoa.dm.adqlgeom.Shape
updateUsing
-
Field Details
-
points
@VoDml(id="adqlgeom:Polygon.points", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected Point[] points. : Attribute points : multiplicity 3
-
-
Constructor Details
-
Polygon
public Polygon()Creates a new Polygon -
Polygon
full parameter constructor.- Parameters:
points- .
-
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- .
-
-
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()
-