Class NameValue

java.lang.Object
ro.sync.contentcompletion.xml.NameValue
Direct Known Subclasses:
ExternalEntityNameValue

@API(type=EXTENDABLE, src=PRIVATE) public class NameValue extends Object
A pair class with name and value.
  • Constructor Details

    • NameValue

      public NameValue(String name, String value)
      Constructor.
      Parameters:
      name - The name.
      value - The value.
    • NameValue

      public NameValue(String name, String value, String documentation)
      Constructor.
      Parameters:
      name - The name.
      value - The value.
      documentation - The documentation.
  • Method Details

    • getName

      public String getName()
      Gets the name.
      Returns:
      The name.
    • getValue

      public String getValue()
      Gets the value.
      Returns:
      The value.
    • getDocumentation

      public String getDocumentation()
      Gets the documentation.
      Returns:
      The documentation.
    • toString

      public String toString()
      Returns the name and value formated as n: name v: value
      Overrides:
      toString in class Object
      Returns:
      the name and value of the NameValue object.
    • equals

      public boolean equals(Object other)
      Verifies if two objects are equals
      Overrides:
      equals in class Object
      Parameters:
      other - The object to compare to.
      Returns:
      True if the two object have the same name and value. False otherwise.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • setDocumentation

      public void setDocumentation(String documentation)
      Parameters:
      documentation - The documentation to set.