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
XMLLiteral
public XMLLiteral(String value)
- Creates an XMLLiteral.
- Parameters:
value
- a plain string for the literal (with markup unescaped).
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 © 2013. All rights reserved.