org.eclipse.lyo.oslc4j.core.model

## Class XMLLiteral

- java.lang.Object
- - org.eclipse.lyo.oslc4j.core.model.XMLLiteral

-     public class XMLLiteral
      extends Object

  A special value type that can be added to an extended properties map of an `IExtendedResource` to indicate the value is an XMLLiteral rather than a simple string.
  See Also:
    XML Content within an RDF Graph

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XMLLiteral(String value)` Creates an XMLLiteral.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `String` | `getValue()` Gets the string value of the literal.
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### XMLLiteral

          public XMLLiteral(String value)

      Creates an XMLLiteral.
      Parameters:
        `value` - a plain string for the literal (with markup unescaped).

  - ### Method Detail

    - #### getValue

          public String getValue()

      Gets the string value of the literal.
      Returns:
        the value

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

Copyright © 2016. All rights reserved.