Class MultiShape

java.lang.Object
org.ivoa.dm.adqlgeom.MultiShape
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="adqlgeom:MultiShape", role=dataType) public class MultiShape extends Object implements org.ivoa.vodml.jpa.JPAManipulations
multiple simple shapes describing regions as a single value. dataType: MultiShape
  • Field Details

    • shapes

      @VoDml(id="adqlgeom:MultiShape.shapes", role=attribute, type="adqlgeom:Shape", typeRole=dataType) protected List<Shape> shapes
      . : Attribute shapes : multiplicity 1..*
  • Constructor Details

    • MultiShape

      public MultiShape()
      Creates a new MultiShape
    • MultiShape

      public MultiShape(List<Shape> shapes)
      full parameter constructor.
      Parameters:
      shapes - .
    • MultiShape

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

    • updateUsing

      public void updateUsing(MultiShape 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.
    • getShapes

      public List<Shape> getShapes()
      Returns shapes Attribute.
      Returns:
      shapes Attribute
    • setShapes

      public void setShapes(List<Shape> pShapes)
      Set shapes Attribute.
      Parameters:
      pShapes - value to set
    • withShapes

      public MultiShape withShapes(List<Shape> pShapes)
      fluent setter for shapes Attribute.
      Parameters:
      pShapes - value to set
      Returns:
      MultiShape
    • createMultiShape

      public static MultiShape createMultiShape(Consumer<MultiShape.MultiShapeBuilder> f)
      create a MultiShape 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