Class KeyValue

  • All Implemented Interfaces:
    java.io.Serializable

    public class KeyValue
    extends Comet3EntityData
    Java class for the Comet3 KeyValue type.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  KeyValue.KeyValueAttribute
      Attributes for the Comet3 KeyValue type.
      CAUTION! Do not change the order of these attributes or add or remove attributes, otherwise the InDesign Comet Plug-Ins and other clients will misinterpret the data sent from the Publishing Server.
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValue()
      Instantiates a new Key value.
      KeyValue​(java.lang.Object key, java.lang.Object value)
      Instantiates a new Key value.
      KeyValue​(java.lang.String key, java.lang.String value)
      Instantiates a new Key value.
    • Constructor Detail

      • KeyValue

        public KeyValue()
        Instantiates a new Key value.
      • KeyValue

        public KeyValue​(java.lang.String key,
                        java.lang.String value)
        Instantiates a new Key value.
        Parameters:
        key - the key
        value - the value
      • KeyValue

        public KeyValue​(java.lang.Object key,
                        java.lang.Object value)
        Instantiates a new Key value.
        Parameters:
        key - the key
        value - the value
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Gets key.
        Returns:
        the key
      • setKey

        public void setKey​(java.lang.String key)
        Sets key.
        Parameters:
        key - the key
      • getValue

        public java.lang.String getValue()
        Gets value.
        Returns:
        the value
      • setValue

        public void setValue​(java.lang.String value)
        Sets value.
        Parameters:
        value - the value
      • setContent

        public void setContent​(java.lang.String content)
        Description copied from class: Comet3EntityData
        Sets content.
        Specified by:
        setContent in class Comet3EntityData
        Parameters:
        content - the content
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object