Class Source

java.lang.Object
org.ivoa.dm.registry.voresource.Source
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="VOResource:Source", role=dataType) public class Source extends Object implements org.ivoa.vodml.jpa.JPAManipulations
. dataType: Source
  • Field Details

    • value

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

      @VoDml(id="VOResource:Source.format", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String format
      The reference format. Recognized values include “bibcode”, referring to a standard astronomical bibcode (http://cdsweb.u-strasbg.fr/simbad/refcode.html). : Attribute format : multiplicity 1
  • Constructor Details

    • Source

      public Source()
      Creates a new Source
    • Source

      public Source(String value, String format)
      full parameter constructor.
      Parameters:
      value - .
      format - The reference format. Recognized values include “bibcode”, referring to a standard astronomical bibcode (http://cdsweb.u-strasbg.fr/simbad/refcode.html).
    • Source

      public Source(Source 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(Source 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 Source withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      Source
    • getFormat

      public String getFormat()
      Returns format Attribute.
      Returns:
      format Attribute
    • setFormat

      public void setFormat(String pFormat)
      Set format Attribute.
      Parameters:
      pFormat - value to set
    • withFormat

      public Source withFormat(String pFormat)
      fluent setter for format Attribute.
      Parameters:
      pFormat - value to set
      Returns:
      Source
    • createSource

      public static Source createSource(Consumer<Source.SourceBuilder> f)
      create a Source 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