public abstract class StructureElement extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Object> |
additionalInformation |
Constructor and Description |
---|
StructureElement() |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalInformation(String infoName,
Object infoContent)
Adds an additional information identified by
infoName |
boolean |
containsAdditionalInfo(String infoName)
Verifies whether this element contains the additional information
identified by
infoName |
Object |
getAdditionalInformation(String infoName)
Returns the additional information identified by
infoName |
abstract String |
getTextFromData()
Returns a textual representation of the data stored in this
structureElement
|
String |
getTextFromDataWithAdditionalInfo()
Returns the textual format of the content, concatenated with all the
additional information added to this element
|
Object |
removeAdditionalInformation(String infoName) |
abstract void |
setDataFromText(String structureElementDescription)
Initializes a StructureElement using its textual description provided in
structureElementDescription |
public abstract void setDataFromText(String structureElementDescription) throws Exception
structureElementDescription
structureElementDescription
- the textual description of the structureElement to be
initializedException
public abstract String getTextFromData()
public void addAdditionalInformation(String infoName, Object infoContent)
infoName
infoName
- the identifier of the additional informationinfoContent
- the additional informationpublic Object getAdditionalInformation(String infoName)
infoName
infoName
- the identifier of the additional informationinfoName
;
null if that information is not contained
public boolean containsAdditionalInfo(String infoName)
infoName
infoName
- the identifier of the additional informationtrue
if this element contains the additional information
identified by infoName
;
false
otherwisepublic String getTextFromDataWithAdditionalInfo()
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.