Class Resource.ResourceImpl

java.lang.Object
cdm.legaldocumentation.common.Resource.ResourceImpl
All Implemented Interfaces:
Resource, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
Resource

public static class Resource.ResourceImpl extends Object implements Resource
Immutable Implementation of Resource
  • Constructor Details

  • Method Details

    • getResourceId

      @RosettaAttribute(value="resourceId", isRequired=true) @RuneAttribute(value="resourceId", isRequired=true) public FieldWithMetaString getResourceId()
      Description copied from interface: Resource
      The unique identifier of the resource within the event. FpML specifies this element of type resourceIdScheme but with no specified value.
      Specified by:
      getResourceId in interface Resource
    • getResourceType

      @RosettaAttribute("resourceType") @RuneAttribute("resourceType") public FieldWithMetaResourceTypeEnum getResourceType()
      Description copied from interface: Resource
      A description of the type of the resource, e.g. a confirmation.
      Specified by:
      getResourceType in interface Resource
    • getLanguage

      @RosettaAttribute("language") @RuneAttribute("language") public FieldWithMetaString getLanguage()
      Description copied from interface: Resource
      Indicates the language of the resource, described using the ISO 639-2/T Code.
      Specified by:
      getLanguage in interface Resource
    • getSizeInBytes

      @RosettaAttribute("sizeInBytes") @RuneAttribute("sizeInBytes") public BigDecimal getSizeInBytes()
      Description copied from interface: Resource
      Indicates the size of the resource in bytes. It could be used by the end user to estimate the download time and storage needs.
      Specified by:
      getSizeInBytes in interface Resource
    • getLength

      @RosettaAttribute("length") @RuneAttribute("length") public ResourceLength getLength()
      Description copied from interface: Resource
      Indicates the length of the resource. For example, if the resource were a PDF file, the length would be in pages.
      Specified by:
      getLength in interface Resource
    • getMimeType

      @RosettaAttribute("mimeType") @RuneAttribute("mimeType") public FieldWithMetaString getMimeType()
      Description copied from interface: Resource
      Indicates the type of media used to store the content. mimeType is used to determine the software product(s) that can read the content. MIME Types are described in RFC 2046.
      Specified by:
      getMimeType in interface Resource
    • getName

      @RosettaAttribute("name") @RuneAttribute("name") public String getName()
      Description copied from interface: Resource
      The name of the resource. It is specified as a NormalizedString in FpML.
      Specified by:
      getName in interface Resource
    • getComments

      @RosettaAttribute("comments") @RuneAttribute("comments") public String getComments()
      Description copied from interface: Resource
      Any additional comments that are deemed necessary. For example, which software version is required to open the document? Or, how does this resource relate to the others for this event?
      Specified by:
      getComments in interface Resource
    • getString

      @RosettaAttribute("string") @RuneAttribute("string") public String getString()
      Description copied from interface: Resource
      Provides extra information as string. In case the extra information is in XML format, a CDATA section must be placed around the source message to prevent its interpretation as XML content.
      Specified by:
      getString in interface Resource
    • getUrl

      @RosettaAttribute("url") @RuneAttribute("url") public String getUrl()
      Description copied from interface: Resource
      Indicates where the resource can be found, as a URL that references the information on a web server accessible to the message recipient.
      Specified by:
      getUrl in interface Resource
    • build

      public Resource build()
      Description copied from interface: Resource
      Build Methods
      Specified by:
      build in interface Resource
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      public Resource.ResourceBuilder toBuilder()
      Specified by:
      toBuilder in interface Resource
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(Resource.ResourceBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object