public class StringRepresentation extends Object implements Representation
| Constructor and Description |
|---|
StringRepresentation()
Empty constructor necessary for making
RepresentationFactory
support this implementation. |
StringRepresentation(String representation)
Initializing constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object representation) |
char[] |
getCharArray() |
String |
getTextFromData()
Returns a textual representation of the data stored in this
representation
|
void |
setDataFromText(String string)
Initializes a Representation using its textual description provided in
representationDescription |
String |
toString() |
public StringRepresentation()
RepresentationFactory
support this implementation.featureVector - is an array of feature valuespublic StringRepresentation(String representation)
representation - is the string representationpublic void setDataFromText(String string)
RepresentationrepresentationDescriptionsetDataFromText in interface Representationstring - the textual description of the representation to be
initializedpublic char[] getCharArray()
public String getTextFromData()
RepresentationgetTextFromData in interface RepresentationCopyright © 2014 Semantic Analytics Group @ Uniroma2. All rights reserved.