Class AccessURL

java.lang.Object
org.ivoa.dm.registry.voresource.AccessURL
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="VOResource:AccessURL", role=objectType) public class AccessURL extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
. objectType: AccessURL
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • value

      @VoDml(id="VOResource:AccessURL.value", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String value
      . : Attribute value : multiplicity 1
    • use

      @VoDml(id="VOResource:AccessURL.use", role=attribute, type="VOResource:AccessURL_use", typeRole=enumeration) protected AccessURL_use use
      A flag indicating whether this should be interpreted as a base URL, a full URL, or a URL to a directory that will produce a listing of files. The default value assumed when one is not given depends on the context. : Attribute use : multiplicity 1
  • Constructor Details

    • AccessURL

      public AccessURL()
      Creates a new AccessURL
    • AccessURL

      public AccessURL(String value, AccessURL_use use)
      full parameter constructor.
      Parameters:
      value - .
      use - A flag indicating whether this should be interpreted as a base URL, a full URL, or a URL to a directory that will produce a listing of files. The default value assumed when one is not given depends on the context.
    • AccessURL

      public AccessURL(AccessURL 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(AccessURL 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.
    • getValue

      public String getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(String pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public AccessURL withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      AccessURL
    • getUse

      public AccessURL_use getUse()
      Returns use Attribute.
      Returns:
      use Attribute
    • setUse

      public void setUse(AccessURL_use pUse)
      Set use Attribute.
      Parameters:
      pUse - value to set
    • withUse

      public AccessURL withUse(AccessURL_use pUse)
      fluent setter for use Attribute.
      Parameters:
      pUse - value to set
      Returns:
      AccessURL
    • createAccessURL

      public static AccessURL createAccessURL(Consumer<AccessURL.AccessURLBuilder> f)
      create a AccessURL 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>