4A Server -
2.0
|
Class representing vocabulary entity attribute. More...
Classes | |
class | Entity |
Class holds values of dictionary entity. More... | |
Protected Member Functions | |
String | getXmlBody () |
Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.StructuredAttribute | |
String | getXmlStart (boolean withOntology) |
String | getXmlEnd () |
abstract String | getXmlBody () |
Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.BaseAttribute | |
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.entity.attribute.BaseAttribute | |
Integer | id |
int | annotation |
String | name |
String | simpleType |
Integer | type |
String | uri |
String | nested |
Integer | linked |
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 |
Annotation | refAnnotation |
AnnotType | attributeType |
Annotation | nestedAnnotation |
Annotation | linkedAnnotation |
User | user |
List< EntityAdditionalAttribute > | entityAdditionalAttributes |
Static Protected Attributes inherited from cz.vutbr.fit.knot.annotations.entity.attribute.BaseAttribute | |
static final long | serialVersionUID = 1L |
Class representing vocabulary entity attribute.
Class representing vocabulary entity attribute.
Definition at line 41 of file EntityAttribute.java.
cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.EntityAttribute | ( | ) |
Constructor.
Definition at line 46 of file EntityAttribute.java.
cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.EntityAttribute | ( | 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 59 of file EntityAttribute.java.
|
private |
The method converts HTML forbidden symbols to their safe version.
s | string that contains forbiden symbols |
Definition at line 387 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.getDescription | ( | ) |
Gets entity description
Definition at line 101 of file EntityAttribute.java.
List<EntityAdditionalAttribute> cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.getEntityAdditionalAttributes | ( | ) |
Gets additional attributes of this entity
Definition at line 74 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.getTypeOntologyUri | ( | ) |
Gets URI addres in ontology for this type of attribute
Definition at line 494 of file EntityAttribute.java.
Object cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.getValue | ( | ) |
Gets attribute value
Definition at line 420 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.getXmlAttributeName | ( | ) |
Gets name of this attribute to XML
Definition at line 410 of file EntityAttribute.java.
|
protected |
Gets value of attribute in XML (serailized informationa about entity)
Definition at line 120 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setDescription | ( | String | textValue | ) |
Sets entity description
textValue | New description |
Definition at line 92 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setEntityAdditionalAttributes | ( | ArrayList< EntityAdditionalAttribute > | EntityAdditionalAttributes | ) |
Sets additional attributes of this entity
EntityAdditionalAttributes | Additional attributes of this entity |
Definition at line 83 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setEntityName | ( | String | name | ) |
Sets entity name
name | New entity name |
Definition at line 110 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setEntityType | ( | String | entityType | ) |
Sets type of entity
entityType | Type of entity |
Definition at line 463 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setEntityVisualURI | ( | String | entityVisualURI | ) |
Sets URI of visual representation of entity
entityVisualURI | URI of visual representation of entity |
Definition at line 454 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setFromJSONStringValue | ( | String | value | ) |
The method sets the parameters from a string in JSON.
value | String parsed from JSON |
Definition at line 443 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setRawValues | ( | Object | values | ) | throws IllegalArgumentException |
Sets value of attribute using given parameters from raw input
values | Parameters from raw input |
IllegalArgumentException |
Definition at line 354 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setStringValue | ( | String | stringValue | ) |
Sets string value of attribute
stringValue | Gets string value of attribute |
Definition at line 472 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.setValue | ( | Object | value | ) |
Sets attribute value
value | Attribute value (Entity) |
Definition at line 430 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.toString | ( | ) |
Encode values of the attribute to one string
This method can be used for generating value for JSON object
Definition at line 484 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.toXMLResponseStringV2 | ( | ) |
Method converts the object into an XML string for prupose of protocol version 2.
Definition at line 281 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.toXmlString | ( | ) |
Method converts the object into an XML string (for protocol 1.x).
Definition at line 166 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.toXMLStringWHV2 | ( | ) |
Returns serialized informations about attribute of annotation in XML for protocol v. 2.0 without header (target and attribute specification triples)
Definition at line 215 of file EntityAttribute.java.