4A Server -
2.0
|
Class representing vocabulary entity attribute for prupose of suggestion. More...
Protected Member Functions | |
String | getXmlBody () |
Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugStructuredAttribute | |
String | getXmlStart (boolean withOntology) |
String | getXmlEnd () |
abstract String | getXmlBody () |
Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute | |
String | getCommentXmlPart (boolean proto11) |
String | xmlFormatValue () |
Private Member Functions | |
String | escapeHTML (String s) |
Additional Inherited Members | |
Protected Attributes inherited from cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute | |
Integer | id |
int | suggestion |
String | name |
String | simpleType |
Integer | type |
String | uri |
String | nestedSugg |
String | nestedAnnot |
Integer | linkedSugg |
Integer | linkedAnnot |
String | stringValue |
String | textValue |
Date | dateValue |
Integer | intValue |
BigDecimal | decValue |
Boolean | boolVAlue |
byte[] | binValue |
Integer | userValue |
BigDecimal | geoLat |
BigDecimal | geoLong |
String | entityType |
String | entityVisualURI |
String | comment |
Integer | priority |
Suggestion | refSuggestion |
AnnotType | attributeType |
Suggestion | nestedSuggestion |
Annotation | nestedAnnotation |
Suggestion | linkedSuggestion |
Annotation | linkedAnnotation |
User | user |
List < SugEntityAdditionalAttribute > | entityAdditionalAttributes |
Static Protected Attributes inherited from cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute | |
static final long | serialVersionUID = 1L |
Class representing vocabulary entity attribute for prupose of suggestion.
Class representing vocabulary entity attribute for prupose of suggestion
Definition at line 41 of file SugEntityAttribute.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.SugEntityAttribute | ( | ) |
Constructor.
Definition at line 45 of file SugEntityAttribute.java.
cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.SugEntityAttribute | ( | String | name, |
String | type, | ||
String | URI, | ||
String | visualRepresentation, | ||
String | description | ||
) |
Constructor.
name | name of vocabulary entity |
type | type of vocabulary entity |
URI | uri of vocabulary entity |
visualRepresentation | uri of visual representation of vocabulary entity |
description | description of vocabulary entity |
Definition at line 58 of file SugEntityAttribute.java.
|
private |
The method converts HTML forbidden symbols to their safe version.
s | string that contains forbiden symbols |
Definition at line 311 of file SugEntityAttribute.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.getDescription | ( | ) |
Gets entity description
Definition at line 100 of file SugEntityAttribute.java.
List<SugEntityAdditionalAttribute> cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.getEntityAdditionalAttributes | ( | ) |
Gets additional attributes of this entity
Definition at line 73 of file SugEntityAttribute.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.getTypeOntologyUri | ( | ) |
Gets URI addres in ontology for this type of attribute
Definition at line 391 of file SugEntityAttribute.java.
Object cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.getValue | ( | ) |
Gets attribute value
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.
Definition at line 344 of file SugEntityAttribute.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.getXmlAttributeName | ( | ) |
Gets name of this attribute to XML
Definition at line 334 of file SugEntityAttribute.java.
|
protected |
Gets value of attribute in XML (serailized informationa about entity)
Definition at line 119 of file SugEntityAttribute.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.setDescription | ( | String | textValue | ) |
Sets entity description
textValue | New description |
Definition at line 91 of file SugEntityAttribute.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.setEntityAdditionalAttributes | ( | ArrayList< SugEntityAdditionalAttribute > | EntityAdditionalAttributes | ) |
Sets additional attributes of this entity
EntityAdditionalAttributes | Additional attributes of this entity |
Definition at line 82 of file SugEntityAttribute.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.setEntityName | ( | String | name | ) |
Sets entity name
name | New entity name |
Definition at line 109 of file SugEntityAttribute.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.setRawValues | ( | Object | values | ) | throws IllegalArgumentException |
Sets value of attribute using given parameters from raw input
values | Parameters from raw input |
IllegalArgumentException |
Definition at line 278 of file SugEntityAttribute.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.setStringValue | ( | String | value | ) |
The method sets the parameters from a string in JSON.
value | string parsed from JSON |
Definition at line 367 of file SugEntityAttribute.java.
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.setValue | ( | Object | value | ) |
Sets attribute value
value | Attribute value (Entity) |
Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.
Definition at line 354 of file SugEntityAttribute.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.toString | ( | ) |
Encode values of the attribute to one string
This method can be used for generating value for JSON object
Definition at line 381 of file SugEntityAttribute.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.toXmlString | ( | ) |
Method converts the object into an XML string (for protocol 1.x).
Definition at line 161 of file SugEntityAttribute.java.
String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugEntityAttribute.toXMLStringWHV2 | ( | ) |
Returns serialized informations about attribute of suggestion in XML for protocol v. 2.0 without header (target and attribute specification triples)
Definition at line 210 of file SugEntityAttribute.java.