Class CodeValue.CodeValueBuilderImpl

java.lang.Object
cdm.base.staticdata.codelist.CodeValue.CodeValueBuilderImpl
All Implemented Interfaces:
CodeValue, CodeValue.CodeValueBuilder, com.rosetta.model.lib.RosettaModelObject, com.rosetta.model.lib.RosettaModelObjectBuilder
Enclosing interface:
CodeValue

public static class CodeValue.CodeValueBuilderImpl extends Object implements CodeValue.CodeValueBuilder
Builder Implementation of CodeValue
  • Field Details

    • value

      protected String value
    • description

      protected String description
    • source

      protected String source
    • effectiveDate

      protected com.rosetta.model.lib.records.Date effectiveDate
    • deprecatedDate

      protected com.rosetta.model.lib.records.Date deprecatedDate
  • Constructor Details

    • CodeValueBuilderImpl

      public CodeValueBuilderImpl()
  • Method Details

    • getValue

      @RosettaAttribute("value") @Accessor(GETTER) @Required @RuneAttribute("value") public String getValue()
      Description copied from interface: CodeValue
      The value of the code, e.g. USNY
      Specified by:
      getValue in interface CodeValue
    • getDescription

      @RosettaAttribute("description") @Accessor(GETTER) @RuneAttribute("description") public String getDescription()
      Description copied from interface: CodeValue
      A description of the meaning of the code, e.g. New York City, USA
      Specified by:
      getDescription in interface CodeValue
    • getSource

      @RosettaAttribute("source") @Accessor(GETTER) @RuneAttribute("source") public String getSource()
      Description copied from interface: CodeValue
      Where the code was defined,e.g. ISDA, FpML, Bloomberg
      Specified by:
      getSource in interface CodeValue
    • getEffectiveDate

      @RosettaAttribute("effectiveDate") @Accessor(GETTER) @RuneAttribute("effectiveDate") public com.rosetta.model.lib.records.Date getEffectiveDate()
      Description copied from interface: CodeValue
      When the code became/becomes effective
      Specified by:
      getEffectiveDate in interface CodeValue
    • getDeprecatedDate

      @RosettaAttribute("deprecatedDate") @Accessor(GETTER) @RuneAttribute("deprecatedDate") public com.rosetta.model.lib.records.Date getDeprecatedDate()
      Description copied from interface: CodeValue
      When the code ceased to be valid for new uses
      Specified by:
      getDeprecatedDate in interface CodeValue
    • setValue

      @RosettaAttribute("value") @Accessor(SETTER) @Required @RuneAttribute("value") public CodeValue.CodeValueBuilder setValue(String _value)
      Specified by:
      setValue in interface CodeValue.CodeValueBuilder
    • setDescription

      @RosettaAttribute("description") @Accessor(SETTER) @RuneAttribute("description") public CodeValue.CodeValueBuilder setDescription(String _description)
      Specified by:
      setDescription in interface CodeValue.CodeValueBuilder
    • setSource

      @RosettaAttribute("source") @Accessor(SETTER) @RuneAttribute("source") public CodeValue.CodeValueBuilder setSource(String _source)
      Specified by:
      setSource in interface CodeValue.CodeValueBuilder
    • setEffectiveDate

      @RosettaAttribute("effectiveDate") @Accessor(SETTER) @RuneAttribute("effectiveDate") public CodeValue.CodeValueBuilder setEffectiveDate(com.rosetta.model.lib.records.Date _effectiveDate)
      Specified by:
      setEffectiveDate in interface CodeValue.CodeValueBuilder
    • setDeprecatedDate

      @RosettaAttribute("deprecatedDate") @Accessor(SETTER) @RuneAttribute("deprecatedDate") public CodeValue.CodeValueBuilder setDeprecatedDate(com.rosetta.model.lib.records.Date _deprecatedDate)
      Specified by:
      setDeprecatedDate in interface CodeValue.CodeValueBuilder
    • build

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

      public CodeValue.CodeValueBuilder toBuilder()
      Specified by:
      toBuilder in interface CodeValue
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • prune

      Specified by:
      prune in interface CodeValue.CodeValueBuilder
      Specified by:
      prune in interface com.rosetta.model.lib.RosettaModelObjectBuilder
    • hasData

      public boolean hasData()
      Specified by:
      hasData in interface com.rosetta.model.lib.RosettaModelObjectBuilder
    • merge

      public CodeValue.CodeValueBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger)
      Specified by:
      merge in interface com.rosetta.model.lib.RosettaModelObjectBuilder
    • 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