Class Capability

java.lang.Object
org.ivoa.dm.regtap.Capability
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="RegTAP:Capability", role=objectType) public class Capability extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Pieces of behaviour of a resource. objectType: Capability
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • cap_index

      @VoDml(id="RegTAP:Capability.cap_index", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer cap_index
      An arbitrary identifier of this capability within the resource. : Attribute cap_index : multiplicity 1
    • cap_type

      @VoDml(id="RegTAP:Capability.cap_type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cap_type
      The type of capability covered here. If looking for endpoints implementing a certain standard, you should not use this column but rather match against standard_id. : Attribute cap_type : multiplicity 1
    • cap_description

      @VoDml(id="RegTAP:Capability.cap_description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cap_description
      A human-readable description of what this capability provides as part of the over-all service. : Attribute cap_description : multiplicity 1
    • standard_id

      @VoDml(id="RegTAP:Capability.standard_id", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String standard_id
      A URI for a standard this capability conforms to. : Attribute standard_id : multiplicity 1
  • Constructor Details

    • Capability

      public Capability()
      Creates a new Capability
    • Capability

      public Capability(Integer cap_index, String cap_type, String cap_description, String standard_id)
      full parameter constructor.
      Parameters:
      cap_index - An arbitrary identifier of this capability within the resource.
      cap_type - The type of capability covered here. If looking for endpoints implementing a certain standard, you should not use this column but rather match against standard_id.
      cap_description - A human-readable description of what this capability provides as part of the over-all service.
      standard_id - A URI for a standard this capability conforms to.
    • Capability

      public Capability(Capability 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(Capability 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.
    • getCap_index

      public Integer getCap_index()
      Returns cap_index Attribute.
      Returns:
      cap_index Attribute
    • setCap_index

      public void setCap_index(Integer pCap_index)
      Set cap_index Attribute.
      Parameters:
      pCap_index - value to set
    • withCap_index

      public Capability withCap_index(Integer pCap_index)
      fluent setter for cap_index Attribute.
      Parameters:
      pCap_index - value to set
      Returns:
      Capability
    • getCap_type

      public String getCap_type()
      Returns cap_type Attribute.
      Returns:
      cap_type Attribute
    • setCap_type

      public void setCap_type(String pCap_type)
      Set cap_type Attribute.
      Parameters:
      pCap_type - value to set
    • withCap_type

      public Capability withCap_type(String pCap_type)
      fluent setter for cap_type Attribute.
      Parameters:
      pCap_type - value to set
      Returns:
      Capability
    • getCap_description

      public String getCap_description()
      Returns cap_description Attribute.
      Returns:
      cap_description Attribute
    • setCap_description

      public void setCap_description(String pCap_description)
      Set cap_description Attribute.
      Parameters:
      pCap_description - value to set
    • withCap_description

      public Capability withCap_description(String pCap_description)
      fluent setter for cap_description Attribute.
      Parameters:
      pCap_description - value to set
      Returns:
      Capability
    • getStandard_id

      public String getStandard_id()
      Returns standard_id Attribute.
      Returns:
      standard_id Attribute
    • setStandard_id

      public void setStandard_id(String pStandard_id)
      Set standard_id Attribute.
      Parameters:
      pStandard_id - value to set
    • withStandard_id

      public Capability withStandard_id(String pStandard_id)
      fluent setter for standard_id Attribute.
      Parameters:
      pStandard_id - value to set
      Returns:
      Capability
    • createCapability

      public static Capability createCapability(Consumer<Capability.CapabilityBuilder> f)
      create a Capability 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>