Class Format

java.lang.Object
org.ivoa.dm.registry.vodataservice.Format
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

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

    • value

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

      @VoDml(id="VODataService:Format.isMIMEType", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean isMIMEType
      If true, the content of the element is an RFC 2046-compliant media time. : Attribute isMIMEType : multiplicity 1
  • Constructor Details

    • Format

      public Format()
      Creates a new Format
    • Format

      public Format(String value, Boolean isMIMEType)
      full parameter constructor.
      Parameters:
      value - .
      isMIMEType - If true, the content of the element is an RFC 2046-compliant media time.
    • Format

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

      public Boolean getIsMIMEType()
      Returns isMIMEType Attribute.
      Returns:
      isMIMEType Attribute
    • setIsMIMEType

      public void setIsMIMEType(Boolean pIsMIMEType)
      Set isMIMEType Attribute.
      Parameters:
      pIsMIMEType - value to set
    • withIsMIMEType

      public Format withIsMIMEType(Boolean pIsMIMEType)
      fluent setter for isMIMEType Attribute.
      Parameters:
      pIsMIMEType - value to set
      Returns:
      Format
    • createFormat

      public static Format createFormat(Consumer<Format.FormatBuilder> f)
      create a Format 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