Package org.ivoa.dm.adqlgeom
Class Line
java.lang.Object
org.ivoa.dm.adqlgeom.Line
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="adqlgeom:Line",
role=dataType)
public class Line
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A line defined on the celestial sphere. If the distance between begin and end is 180° (π), this function returns an error because the location of the line is undefined. However, if longitudes of begin and end are equal, pgSphere assumes a meridian and returns the corresponding spherical line.
dataType: Line
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Line, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Linecreate a Line in functional builder style.booleanvoidorg.javastro.ivoacore.pgsphere.types.PointgetBegin()Returns begin Attribute.org.javastro.ivoacore.pgsphere.types.PointgetEnd()Returns end Attribute.inthashCode()voidsetBegin(org.javastro.ivoacore.pgsphere.types.Point pBegin) Set begin Attribute.voidsetEnd(org.javastro.ivoacore.pgsphere.types.Point pEnd) Set end Attribute.voidupdateUsing(Line other) Update this object with the content of the given object.withBegin(org.javastro.ivoacore.pgsphere.types.Point pBegin) fluent setter for begin Attribute.withEnd(org.javastro.ivoacore.pgsphere.types.Point pEnd) fluent setter for end Attribute.
-
Field Details
-
begin
@VoDml(id="adqlgeom:Line.begin", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected org.javastro.ivoacore.pgsphere.types.Point beginstart point of line. : Attribute begin : multiplicity 1 -
end
@VoDml(id="adqlgeom:Line.end", role=attribute, type="adqlgeom:Point", typeRole=dataType) protected org.javastro.ivoacore.pgsphere.types.Point endend point of line. : Attribute end : multiplicity 1
-
-
Constructor Details
-
Line
public Line()Creates a new Line -
Line
public Line(org.javastro.ivoacore.pgsphere.types.Point begin, org.javastro.ivoacore.pgsphere.types.Point end) full parameter constructor.- Parameters:
begin- start point of line.end- end point of line.
-
Line
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
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.
-
getBegin
public org.javastro.ivoacore.pgsphere.types.Point getBegin()Returns begin Attribute.- Returns:
- begin Attribute
-
setBegin
public void setBegin(org.javastro.ivoacore.pgsphere.types.Point pBegin) Set begin Attribute.- Parameters:
pBegin- value to set
-
withBegin
fluent setter for begin Attribute.- Parameters:
pBegin- value to set- Returns:
- Line
-
getEnd
public org.javastro.ivoacore.pgsphere.types.Point getEnd()Returns end Attribute.- Returns:
- end Attribute
-
setEnd
public void setEnd(org.javastro.ivoacore.pgsphere.types.Point pEnd) Set end Attribute.- Parameters:
pEnd- value to set
-
withEnd
fluent setter for end Attribute.- Parameters:
pEnd- value to set- Returns:
- Line
-
createLine
create a Line in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
equals
-
hashCode
public int hashCode()
-