Class Capabilities

java.lang.Object
org.ivoa.dm.vosi.capabilities.Capabilities
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="VOSIcap:capabilities", role=objectType) public class Capabilities extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
// TODO might not be a necessary wrapper.... A listing of capabilities supported by a service . objectType: Capabilities
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • capability

      @VoDml(id="VOSIcap:capabilities.capability", role=composition, type="VOResource:Capability", typeRole=objectType) protected List<Capability> capability
      A capability supported by the service. A protocol-specific capability is included by specifying a VOResource:Capability sub-type via an xsi:type attribute on this element. composition capability : ( Multiplicity : 0..* )
  • Constructor Details

    • Capabilities

      public Capabilities()
      Creates a new capabilities
    • Capabilities

      public Capabilities(List<Capability> capability)
      full parameter constructor.
      Parameters:
      capability - A capability supported by the service. A protocol-specific capability is included by specifying a VOResource:Capability sub-type via an xsi:type attribute on this element.
    • Capabilities

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

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(Capabilities 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.
    • getCapability

      public List<Capability> getCapability()
      Returns capability composition as an immutable list.
      Returns:
      capability composition.
    • setCapability

      public void setCapability(List<Capability> pCapability)
      Defines whole capability composition.
      Parameters:
      pCapability - composition to set.
    • addToCapability

      public void addToCapability(Capability p)
      Add a org.ivoa.dm.registry.voresource.Capability to the composition.
      Parameters:
      p - org.ivoa.dm.registry.voresource.Capability to add
    • removeFromCapability

      public void removeFromCapability(Capability p)
      Remove a org.ivoa.dm.registry.voresource.Capability from the composition.
      Parameters:
      p - org.ivoa.dm.registry.voresource.Capability to remove
    • replaceInCapability

      public void replaceInCapability(Capability _p)
      update a org.ivoa.dm.registry.voresource.Capability in the composition.
      Parameters:
      _p - org.ivoa.dm.registry.voresource.Capability to update the match is done via the database key
    • createCapabilities

      public static Capabilities createCapabilities(Consumer<Capabilities.CapabilitiesBuilder> f)
      create a capabilities 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
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>