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
|
boolean |
isCompatible(Representation rep)
Evaluates whether a representation is compatible with this one, e.g.., they have
same type and pass additional checks that are type-dependent
|
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 Representationpublic boolean isCompatible(Representation rep)
RepresentationisCompatible in interface Representationrep - the representation to be compared with this oneCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.