4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute Class Referenceabstract

Class representing attribute of suggestion. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute:
Collaboration graph

Public Member Functions

 SugBaseAttribute ()
 
 SugBaseAttribute (Integer id)
 
String getTypeOntologyUri ()
 
String toXMLString (boolean proto11, boolean withOntology)
 
String toXMLStringV2 ()
 
SugEntityAdditionalAttribute toSugEntityAdditionalAttribute ()
 
int compareTo (Object o)
 
boolean contentEquals (Object obj)
 
boolean contentEquals (Object obj, boolean refAnnot)
 
abstract Object getValue ()
 
abstract void setValue (Object value)
 
abstract void setRawValue (String value) throws IllegalArgumentException
 
boolean isEmpty ()
 
boolean equals (Object object)
 
String getComment ()
 
void setComment (String comment)
 
String toString ()
 
int hashCode ()
 
String getName ()
 
void setName (String name)
 
String getSimpleType ()
 
void setSimpleType (String simpleType)
 
int getSuggestion ()
 
void setSuggestion (int suggestion)
 
Suggestion getRefSuggestion ()
 
void setRefSuggestion (Suggestion value)
 
void setRefSecSuggestion (SecSuggestion value)
 
AnnotType getAttributeType ()
 
void setAttributeType (AnnotType attributeType)
 
Suggestion getNestedSuggestion ()
 
Annotation getNestedAnnotation ()
 
String getNestedSuggID ()
 
void setNestedSuggID (String nest)
 
String getNestedAnnotID ()
 
void setNestedAnnotID (String nestAnnot)
 
void setNestedSuggestion (Suggestion nestedSuggestion)
 
void setNestedAnnotation (Annotation nestedAnnotation)
 
Integer getId ()
 
void setId (Integer id)
 
Integer getType ()
 
void setType (Integer type)
 
boolean isStructured ()
 
void setUser (User user)
 
User getUser ()
 
void setUri (String uri)
 
String getUri ()
 
void setUriInOntology (String uriInOntology)
 
String getUriInOntology ()
 
String toJSONString ()
 
void updateFromBaseAttribut (BaseAttribute ba)
 
void updateFromAlternativeAttribut (AlternativeAttribute attr)
 
String getEntityType ()
 
void setEntityType (String entityType)
 
String getEntityVisualURI ()
 
void setEntityVisualURI (String entityVisualURI)
 
Boolean getBoolValue ()
 
byte[] getBinValue ()
 
Date getDateValue ()
 
BigDecimal getDecValue ()
 
BigDecimal getGeoLat ()
 
BigDecimal getGeoLong ()
 
Integer getIntValue ()
 
String getStringValue ()
 
String getTextValue ()
 
Integer getUserValue ()
 
Annotation getLinkedAnnotation ()
 
Suggestion getLinkedSuggestion ()
 
void setLinkedSuggestion (Suggestion suggestion)
 
Integer getPriority ()
 
void setPriority (Integer priority)
 
List
< SugEntityAdditionalAttribute
getEntityAdditionalAttributes ()
 
void setEntityAdditionalAttributes (List< SugEntityAdditionalAttribute > entityAdditionalAttributes)
 
void updateFromBaseAttributeAll (SugBaseAttribute ba)
 
void setBoolVAlue (Boolean boolVAlue)
 

Protected Member Functions

String getCommentXmlPart (boolean proto11)
 
String xmlFormatValue ()
 

Protected Attributes

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

static final long serialVersionUID = 1L
 

Private Attributes

String uriInOntology
 

Detailed Description

Class representing attribute of suggestion.

Class representing attribute of suggestion

Definition at line 59 of file SugBaseAttribute.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.SugBaseAttribute ( )

Constructor for base attribute. Note: every extended class MUST HAVE default constructor without parameters

Definition at line 220 of file SugBaseAttribute.java.

cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.SugBaseAttribute ( Integer  id)

Creates new attribute

Parameters
idid of new attribute

Definition at line 227 of file SugBaseAttribute.java.

Member Function Documentation

int cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.compareTo ( Object  o)

Compares attributes according to priority

Parameters
oObject to compare with
Returns
Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Definition at line 475 of file SugBaseAttribute.java.

Here is the call graph for this function:

boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.contentEquals ( Object  obj)

Compares this with other object and returns, whether objects are same type

and have same content (id is irrelevant). Contents of nested annotations are also compared.

Parameters
objObject to compare with
Returns
If object is same type and have same content, returns true, false otherwise

Definition at line 504 of file SugBaseAttribute.java.

Here is the caller graph for this function:

boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.contentEquals ( Object  obj,
boolean  refAnnot 
)

Compares this with other object and returns, whether objects are same type

and have same content (id is irrelevant). Contents of nested annotations are also compared.

Parameters
objObject to compare with
refAnnotRefAnnotation will not be checked if the parameter is set to false
Returns
If object is same type and have same content, returns true, false otherwise

Definition at line 517 of file SugBaseAttribute.java.

Here is the call graph for this function:

boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.equals ( Object  object)

Compares this with other object and returns, whether objects are same type and have same id.

Parameters
objectObject to compare with
Returns
If object is same type and have same id, returns true, false otherwise

Definition at line 697 of file SugBaseAttribute.java.

AnnotType cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getAttributeType ( )

Gets structured type of attribute (type of annotation)

Returns
Returns structured type of attribute (type of annotation)

Definition at line 830 of file SugBaseAttribute.java.

Here is the caller graph for this function:

byte [] cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getBinValue ( )

Gets attribute value of binary

Returns
Attribute value of binary

Definition at line 1276 of file SugBaseAttribute.java.

Here is the caller graph for this function:

Boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getBoolValue ( )

Gets attribute value of boolean

Returns
Attribute value of boolean

Definition at line 1267 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getComment ( )

Gets textual comment

Returns
Returns textual comment

Definition at line 713 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getCommentXmlPart ( boolean  proto11)
protected

Just a helper function,which returns XML part for comments.

Parameters
proto11If true, protocol version is greater then 1.0
Returns
XML part for comments

Definition at line 238 of file SugBaseAttribute.java.

Date cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getDateValue ( )

Gets attribute value of date

Returns
Attribute value of date

Definition at line 1285 of file SugBaseAttribute.java.

BigDecimal cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getDecValue ( )

Gets attribute value of decimal

Returns
Attribute value of decimal

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 1295 of file SugBaseAttribute.java.

List<SugEntityAdditionalAttribute> cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getEntityAdditionalAttributes ( )

Gets list of entity additional attribute

Returns
List of entity additional attribute

Definition at line 1407 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getEntityType ( )

Gets attribute value of entityType

Returns
Attribute value of entityType

Definition at line 1231 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getEntityVisualURI ( )

Gets attribute value of entityVisualURI

Returns
Attribute value of entityVisualURI

Definition at line 1249 of file SugBaseAttribute.java.

Here is the caller graph for this function:

BigDecimal cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getGeoLat ( )

Gets attribute value of geo latitude

Returns
Attribute value of geo latitude

Definition at line 1304 of file SugBaseAttribute.java.

Here is the caller graph for this function:

BigDecimal cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getGeoLong ( )

Gets attribute value of geo longitude

Returns
Attribute value of geo longitude

Definition at line 1313 of file SugBaseAttribute.java.

Here is the caller graph for this function:

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getId ( )

Gets id of attribute of annotation

Returns
returns id of attribute of annotation

Definition at line 928 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getIntValue ( )

Gets attribute value of integer

Returns
Attribute value of integer

Definition at line 1322 of file SugBaseAttribute.java.

Annotation cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getLinkedAnnotation ( )

Gets attribute value of linked annotation

Returns
Attribute value of user

Definition at line 1361 of file SugBaseAttribute.java.

Here is the caller graph for this function:

Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getLinkedSuggestion ( )

Gets attribute value of linked suggestion

Returns
Attribute value of user

Definition at line 1370 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getName ( )

Gets name of attribute

Returns
Returns name of attribute

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 744 of file SugBaseAttribute.java.

Here is the caller graph for this function:

Annotation cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getNestedAnnotation ( )

Gets nested annotation

Returns
Returns nested annotation

Definition at line 857 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getNestedAnnotID ( )

Gets tmpID of the nested annotation

Returns
Returns tmpID of the nested annotation

Definition at line 885 of file SugBaseAttribute.java.

Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getNestedSuggestion ( )

Gets nested suggestion

Returns
Returns nested suggestion

Definition at line 848 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getNestedSuggID ( )

Gets tmpID of the nested suggestion

Returns
Returns tmpID of the nested suggestion

Definition at line 866 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getPriority ( )

Gets attribute priority

Returns
Returns attribute priority

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 1388 of file SugBaseAttribute.java.

Here is the caller graph for this function:

Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getRefSuggestion ( )

Gets annotation to which this attribute belongs

Returns
Returns annotation to which this attribute belongs

Definition at line 800 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getSimpleType ( )

Gets name of simple type of attribute

Returns
Returns name of simple type of attribute

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 764 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getStringValue ( )

Gets attribute value of string

Returns
Attribute value of string

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 1332 of file SugBaseAttribute.java.

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getSuggestion ( )

Gets id of suggestion to which this attribute belongs

Returns
Returns id of suggestion to which this attribute belongs

Definition at line 782 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getTextValue ( )

Gets attribute value of text

Returns
Attribute value of text

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 1342 of file SugBaseAttribute.java.

Here is the caller graph for this function:

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getType ( )

Gets id of structured type of attribute (type of annotation)

Returns
Returns id of structured type of attribute (type of annotation)

Definition at line 946 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getTypeOntologyUri ( )

Returns ""

Returns

Definition at line 268 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getUri ( )

Gets attribute value of uri

Returns
Attribute value of uri

Definition at line 1001 of file SugBaseAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getUriInOntology ( )

Gets attributes URI in ontology

Returns
URI in ontology

Definition at line 1019 of file SugBaseAttribute.java.

User cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getUser ( )

Gets attribute value of type Person (user)

Returns
Returns attribute value of type Person (user)

Definition at line 983 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getUserValue ( )

Gets attribute value of user

Returns
Attribute value of user

Definition at line 1352 of file SugBaseAttribute.java.

Here is the caller graph for this function:

abstract Object cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.getValue ( )
abstract

Gets value of the attribute

Returns
value of the attribute

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.hashCode ( )

Definition at line 732 of file SugBaseAttribute.java.

boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.isEmpty ( )

Checks if attribute value is empty or default value

Returns
true, if attribute value is empty

Definition at line 685 of file SugBaseAttribute.java.

Here is the caller graph for this function:

boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.isStructured ( )

Checks if attribute is structured. Structured attribute is for example GeoPointAttribute

Returns
true, if attribute is structured

Definition at line 965 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setAttributeType ( AnnotType  attributeType)

Sets structured type of attribute (type of annotation)

Parameters
attributeTypeStructured type of attribute (type of annotation)

Definition at line 839 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setBoolVAlue ( Boolean  boolVAlue)

Sets boolean value of attribute

Parameters
boolVAlueNew boolean value of attribute

Definition at line 1464 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setComment ( String  comment)

Sets textual comment

Parameters
commentTextual comment

Definition at line 722 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setEntityAdditionalAttributes ( List< SugEntityAdditionalAttribute entityAdditionalAttributes)

Sets list of entity additional attribute

Parameters
entityAdditionalAttributesList of entity additional attribute

Definition at line 1416 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setEntityType ( String  entityType)

Sets attribute value of entityType

Parameters
entityTypeAttribute value of entityType

Definition at line 1240 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setEntityVisualURI ( String  entityVisualURI)

Sets attribute value of entityVisualURI

Parameters
entityVisualURINew value of entityVisualURI

Definition at line 1258 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setId ( Integer  id)

Sets id of attribute of annotation

Parameters
idId of attribute of annotation

Definition at line 937 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setLinkedSuggestion ( Suggestion  suggestion)

Sets attributes linked suggestion

Parameters
suggestionLinked suggestion

Definition at line 1378 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setName ( String  name)

Sets name of attribute

Parameters
nameName of attribute

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 754 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setNestedAnnotation ( Annotation  nestedAnnotation)

Sets nested annotation

Parameters
nestedAnnotationNested annotation

Definition at line 916 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setNestedAnnotID ( String  nestAnnot)

Sets tmpID of the nested annotation

Definition at line 892 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setNestedSuggestion ( Suggestion  nestedSuggestion)

Sets nested suggestion

Parameters
nestedSuggestionNested suggestion

Definition at line 904 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setNestedSuggID ( String  nest)

Sets tmpID of the nested suggestion

Definition at line 873 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setPriority ( Integer  priority)

Sets attribute priority

Parameters
priorityAttribute priority

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 1398 of file SugBaseAttribute.java.

abstract void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setRawValue ( String  value) throws IllegalArgumentException
abstract

Parses provided value and sets that value as a value of attribute

Parameters
valuenew value of the attribute in raw form from XML
void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setRefSecSuggestion ( SecSuggestion  value)

Sets suggestion to which this attribute belongs

Parameters
valueSuggestion to which this attribute belongs

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

Definition at line 819 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setRefSuggestion ( Suggestion  value)

Sets suggestion to which this attribute belongs

Parameters
valueSuggestion to which this attribute belongs

Definition at line 809 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setSimpleType ( String  simpleType)

Sets name of simple type of attribute

Parameters
simpleTypeName of simple type of attribute

Definition at line 773 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setSuggestion ( int  suggestion)

Sets id of suggestion to which this attribute belongs

Parameters
suggestionid of suggestion to which this attribute belongs

Definition at line 791 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setType ( Integer  type)

Sets id of structured type of attribute (type of annotation)

Parameters
typeid of structured type of attribute (type of annotation)

Definition at line 955 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setUri ( String  uri)

Sets attribute value of uri

Parameters
uriAttribute value of uri

Definition at line 992 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setUriInOntology ( String  uriInOntology)

Sets attributes URI in ontology

Parameters
uriInOntologyUri in ontology

Definition at line 1010 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setUser ( User  user)

Sets attribute value of type Person (user)

Parameters
userAttribute value of type Person (user)

Definition at line 974 of file SugBaseAttribute.java.

abstract void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.setValue ( Object  value)
abstract

Sets value of the attribute. Value should already be a native java value.

For example, for attribute of type Integer value should be integer, not string. If you want to set value and parse that value, you should use setRawValue

Parameters
valuenew value of the attribute

Implements cz.vutbr.fit.knot.annotations.modules.suggestionManager.alternative.SecAttribute.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.toJSONString ( )

Stores attribute data into the JSON string representation. String could be processed on the NLP server. Method stores IDs of referenced structures, so when creating an object from this representation, one must look up for structures by IDs.

Returns
String representation of JSON Attribute data

Definition at line 1031 of file SugBaseAttribute.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.toString ( )

Definition at line 727 of file SugBaseAttribute.java.

SugEntityAdditionalAttribute cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.toSugEntityAdditionalAttribute ( )

Converts this attribute to SugEntityAdditionalAttribute Some conversions are not possible as a values are complex

Returns
Returns this attribute as SugEntityAdditionalAttribute or null if conversion is not possible

Definition at line 407 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.toXMLString ( boolean  proto11,
boolean  withOntology 
)

Returns serialized informations about attribute of annotation in XML

Parameters
proto11If true, protocol version is greater then 1.0
withOntologyIf true, URI in ontology will be serialized, if false, it will be omitted
Returns
Returns serialized informations about attribute of annotation in XML

Definition at line 278 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.toXMLStringV2 ( )

Returns serialized informations about attribute of suggestion in XML for protocol V2

Returns
Returns serialized informations about attribute of suggestion in XML for protocol V2

Definition at line 294 of file SugBaseAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.updateFromAlternativeAttribut ( AlternativeAttribute  attr)

Set this attribute from alternative attribute

Parameters
attrattribute of the alternative

Definition at line 1175 of file SugBaseAttribute.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.updateFromBaseAttribut ( BaseAttribute  ba)

Copies data from annotation attribute into this attribute Linked and nested annotation and linked and nested suggestion are not copied.

Parameters
baattribute of the annotation

Definition at line 1126 of file SugBaseAttribute.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.updateFromBaseAttributeAll ( SugBaseAttribute  ba)

Copies Attribute class attributes to a new instance

Parameters
baattribute of the annotation

Definition at line 1425 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.xmlFormatValue ( )
protected

Formats attribute value for XML. Function should provide date converting for date attribute, string escaping for string based attributes...

Returns
string representing attribute value

Definition at line 257 of file SugBaseAttribute.java.

Member Data Documentation

AnnotType cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.attributeType
protected

Structured type of attribute (type of annotation)

Definition at line 183 of file SugBaseAttribute.java.

byte [] cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.binValue
protected

Attribute value of type Binary

Definition at line 144 of file SugBaseAttribute.java.

Boolean cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.boolVAlue
protected

Attribute value of type Boolean

Definition at line 139 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.comment
protected

Comment

Definition at line 169 of file SugBaseAttribute.java.

Date cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.dateValue
protected

Attribute value of type DateTime, Date or Time

Definition at line 127 of file SugBaseAttribute.java.

BigDecimal cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.decValue
protected

Attribute value of type Decimal

Definition at line 135 of file SugBaseAttribute.java.

List<SugEntityAdditionalAttribute> cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.entityAdditionalAttributes
protected

List of entity additional attribute

Definition at line 213 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.entityType
protected

type of vocalbulary entity

Definition at line 159 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.entityVisualURI
protected

uri of image that entity represents

Definition at line 163 of file SugBaseAttribute.java.

BigDecimal cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.geoLat
protected

Attribute value of type GeoPoint - latitude

Definition at line 152 of file SugBaseAttribute.java.

BigDecimal cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.geoLong
protected

Attribute value of type GeoPoint - longitude

Definition at line 155 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.id
protected

Id of attribute of annotation

Definition at line 69 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.intValue
protected

Attribute value of type integer

Definition at line 131 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.linkedAnnot
protected

Id of linked annotation (can be null in case of foreign annotation)

Definition at line 113 of file SugBaseAttribute.java.

Annotation cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.linkedAnnotation
protected

Linked annotation (can be null in case of foreign annotation)

Definition at line 203 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.linkedSugg
protected

Id of linked suggestion (can be null in case of foreign annotation)

Definition at line 109 of file SugBaseAttribute.java.

Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.linkedSuggestion
protected

Linked suggestion (can be null in case of foreign annotation)

Definition at line 198 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.name
protected

Name of attribute

Definition at line 80 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.nestedAnnot
protected

Id of nested annotation (structured value)

Definition at line 105 of file SugBaseAttribute.java.

Annotation cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.nestedAnnotation
protected

Nested annotation (structured value)

Definition at line 193 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.nestedSugg
protected

Id of nested suggestion (structured value)

Definition at line 101 of file SugBaseAttribute.java.

Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.nestedSuggestion
protected

Nested suggestion (structured value)

Definition at line 188 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.priority
protected

Attribute priority (for order)

Definition at line 173 of file SugBaseAttribute.java.

Suggestion cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.refSuggestion
protected

Annotation to which this attribute belongs

Definition at line 178 of file SugBaseAttribute.java.

final long cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.serialVersionUID = 1L
staticprotected

Definition at line 61 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.simpleType
protected

Name of simple type of attribute (set in structured attributes too)

Definition at line 84 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.stringValue
protected

Attribute value of type String

Definition at line 117 of file SugBaseAttribute.java.

int cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.suggestion
protected

Id of suggestion to which this attribute belongs

Definition at line 75 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.textValue
protected

Attribute value of type Text

Definition at line 122 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.type
protected

Id of structured type of attribute (type of annotation)

Definition at line 88 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.uri
protected

Value of attribute type URI or URI of linked annotation or Image

Definition at line 92 of file SugBaseAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.uriInOntology
private

URI in ontology

Definition at line 97 of file SugBaseAttribute.java.

User cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.user
protected

Attribute value of type Person (user)

Definition at line 208 of file SugBaseAttribute.java.

Integer cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute.userValue
protected

Attribute value of type Person (id of user)

Definition at line 148 of file SugBaseAttribute.java.


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