4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity Class Reference

Class holds values of dictionary entity. More...

Collaboration diagram for cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity:
Collaboration graph

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
 

Detailed Description

Class holds values of dictionary entity.

Class holds values of dictionary entity.

Definition at line 503 of file EntityAttribute.java.

Constructor & Destructor Documentation

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

Parameters
typetype of vocabulary entity
namename of vocalbulary entity
URIuri of vocabulary entity
visualRepresentationURI address of image of object that entity represents
descriptiondescription of vocabulary entity

Definition at line 549 of file EntityAttribute.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.escapeJSON ( String  text)
private

The method converts the string to a JSON safe string.

Parameters
textstring to convert
Returns
string without forbidden JSON characters

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.

Parameters
textJSON 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.

Returns
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.

Returns
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.

Returns
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.

Returns
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.

Returns
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.

Parameters
descriptiondescription 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.

Parameters
namename 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.

Parameters
typetype 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.

Parameters
URIuri 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.

Parameters
visualRepresentationURI 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.

Returns
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.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.unescapeJSON ( String  text)
private

Method converts the JSON safe string to normal string.

Parameters
textJSON safe string to convert
Returns
converted normal string

Definition at line 677 of file EntityAttribute.java.

Member Data Documentation

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.description
private

description of vocabulary entity

Definition at line 514 of file EntityAttribute.java.

final ArrayList<String> cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.ESCAPED_CHARS
static
Initial value:
= new ArrayList<String>(Arrays.asList(
"\\\\",
"\\\"",
"\\/" ,
"\\=" ,
"\\,"
))

Array escaped characters of forbidden JSON characters

Definition at line 526 of file EntityAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.name
private

name of vocalbulary entity

Definition at line 508 of file EntityAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.type
private

type of vocabulary entity

Definition at line 506 of file EntityAttribute.java.

final ArrayList<String> cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.UNESACPED_CHARS
static
Initial value:
= new ArrayList<String>(Arrays.asList(
"\\",
"\"",
"/" ,
"=" ,
","
))

Array of forbidden JSON characters

Definition at line 517 of file EntityAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.URI
private

uri of vocabulary entity

Definition at line 510 of file EntityAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAttribute.Entity.visualRepresentation
private

uri of image that entity represents

Definition at line 512 of file EntityAttribute.java.


The documentation for this class was generated from the following file: