4A Server -
2.0
|
Class holds values of dictionary entity. More...
Public Member Functions | |
Entity () | |
Entity (String type, String name, String URI, String visualRepresentation, String description) | |
String | getType () |
void | setType (String type) |
String | getName () |
void | setName (String name) |
String | getURI () |
void | setURI (String URI) |
String | getVisualRepresentation () |
void | setVisualRepresentation (String visualRepresentation) |
String | getDescription () |
void | setDescription (String description) |
String | toString () |
String | toJSONString () |
void | fromJSONString (String text) |
Static Public Attributes | |
static final ArrayList< String > | UNESACPED_CHARS |
static final ArrayList< String > | ESCAPED_CHARS |
Private Member Functions | |
String | escapeJSON (String text) |
String | unescapeJSON (String text) |
Private Attributes | |
String | type |
String | name |
String | URI |
String | visualRepresentation |
String | description |
Class holds values of dictionary entity.
Class holds values of dictionary entity.
Definition at line 503 of file EntityAttribute.java.
cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.Entity | ( | ) |
Constructor
Definition at line 537 of file EntityAttribute.java.
cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.Entity | ( | String | type, |
String | name, | ||
String | URI, | ||
String | visualRepresentation, | ||
String | description | ||
) |
Creates new Entity
type | type of vocabulary entity |
name | name of vocalbulary entity |
URI | uri of vocabulary entity |
visualRepresentation | URI address of image of object that entity represents |
description | description of vocabulary entity |
Definition at line 549 of file EntityAttribute.java.
|
private |
The method converts the string to a JSON safe string.
text | string to convert |
Definition at line 662 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.fromJSONString | ( | String | text | ) |
Method sets the object parameters from JSON string.
text | JSON string |
Definition at line 735 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.getDescription | ( | ) |
Gets description of vocabulary entity.
Definition at line 634 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.getName | ( | ) |
Gets name of vocalbulary entity.
Definition at line 580 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.getType | ( | ) |
Gets type of vocabulary entity.
Definition at line 562 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.getURI | ( | ) |
Gets uri of vocabulary entity.
Definition at line 598 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.getVisualRepresentation | ( | ) |
Gets URI address of image of object that entity represents.
Definition at line 616 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.setDescription | ( | String | description | ) |
Sets description of vocabulary entity.
description | description of vocabulary entity |
Definition at line 643 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.setName | ( | String | name | ) |
Sets name of vocalbulary entity.
name | name of vocalbulary entity |
Definition at line 589 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.setType | ( | String | type | ) |
Sets type of vocabulary entity.
type | type of vocabulary entity |
Definition at line 571 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.setURI | ( | String | URI | ) |
Sets uri of vocabulary entity.
URI | uri of vocabulary entity |
Definition at line 607 of file EntityAttribute.java.
void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.setVisualRepresentation | ( | String | visualRepresentation | ) |
Sets URI address of image of object that entity represents.
visualRepresentation | URI address of image of object that entity represents |
Definition at line 625 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.toJSONString | ( | ) |
The method converts the object to a JSON string.
Definition at line 691 of file EntityAttribute.java.
String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.toString | ( | ) |
Definition at line 648 of file EntityAttribute.java.
|
private |
Method converts the JSON safe string to normal string.
text | JSON safe string to convert |
Definition at line 677 of file EntityAttribute.java.
|
private |
description of vocabulary entity
Definition at line 514 of file EntityAttribute.java.
|
static |
Array escaped characters of forbidden JSON characters
Definition at line 526 of file EntityAttribute.java.
|
private |
name of vocalbulary entity
Definition at line 508 of file EntityAttribute.java.
|
private |
type of vocabulary entity
Definition at line 506 of file EntityAttribute.java.
|
static |
Array of forbidden JSON characters
Definition at line 517 of file EntityAttribute.java.
|
private |
uri of vocabulary entity
Definition at line 510 of file EntityAttribute.java.
|
private |
uri of image that entity represents
Definition at line 512 of file EntityAttribute.java.