Class BooleanMetadata

All Implemented Interfaces:
Metadata

public final class BooleanMetadata extends AbstractBooleanMetadata
Defines a boolean Metadata.
  • Constructor Details

    • BooleanMetadata

      public BooleanMetadata(Id elementId)
      Constructs a new BooleanMetadata for single unlinked elements..
      Parameters:
      elementId - the Id of the element
      Throws:
      NullArgumentException - elementId is null
  • Method Details

    • setLabel

      public void setLabel(DisplayText label)
      Sets the element label.
      Overrides:
      setLabel in class AbstractMetadata
      Parameters:
      label - the new element label
      Throws:
      NullArgumentException - label is null
    • setInstructions

      public void setInstructions(DisplayText instructions)
      Sets the instructions.
      Overrides:
      setInstructions in class AbstractMetadata
      Parameters:
      instructions - the new instructions
      Throws:
      NullArgumentException - instructions is null
    • setRequired

      public void setRequired(boolean required)
      Sets the required flag.
      Overrides:
      setRequired in class AbstractMetadata
      Parameters:
      required - true if required, false if optional
    • setValueExists

      public void setValueExists(boolean exists)
      Sets the has value flag.
      Overrides:
      setValueExists in class AbstractMetadata
      Parameters:
      exists - true if has existing value, false if no value exists
    • setReadOnly

      public void setReadOnly(boolean readonly)
      Sets the read only flag.
      Overrides:
      setReadOnly in class AbstractMetadata
      Parameters:
      readonly - true if read only, false if can be updated