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

Class representing attribute of type Person for peupose of suggestion. More...

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

Public Member Functions

 SugPersonAttribute ()
 
 SugPersonAttribute (String name, User person, Suggestion refSuggestion)
 
Object getValue ()
 
void setValue (Object person)
 
void setRawValues (Object values) throws IllegalArgumentException
 
String getXmlAttributeName ()
 
String getTypeOntologyUri ()
 
- Public Member Functions inherited from cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugStructuredAttribute
String getCommentXmlPart (boolean proto11)
 
String toXMLString (boolean proto11, boolean withOntology)
 
void setRawValue (String value) throws IllegalArgumentException
 
boolean isStructured ()
 
abstract void setRawValues (Object values) throws IllegalArgumentException
 
abstract String getXmlAttributeName ()
 
String getTypeOntologyUri ()
 
- Public Member Functions inherited from cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugBaseAttribute
 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 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 ()
 

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
 

Detailed Description

Class representing attribute of type Person for peupose of suggestion.

Class representing attribute of type Person for peupose of suggestion

Definition at line 34 of file SugPersonAttribute.java.

Constructor & Destructor Documentation

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

Constructor

Definition at line 38 of file SugPersonAttribute.java.

cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugPersonAttribute.SugPersonAttribute ( String  name,
User  person,
Suggestion  refSuggestion 
)

Constructor of attribute of type Person

Parameters
nameName of attribute
personValue of attribute person (user)
refSuggestionSuggestion to which this attribute belongs

Definition at line 48 of file SugPersonAttribute.java.

Member Function Documentation

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

Gets URI addres in ontology for this type of attribute

Returns
Return URI addres in ontology for this type of attribute.

Definition at line 133 of file SugPersonAttribute.java.

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

Gets value of the attribute

Returns
value of the attribute

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

Definition at line 61 of file SugPersonAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugPersonAttribute.getXmlAttributeName ( )

XML of the structured attribute looks like this:

* <a:attribute ...... >
*     <nested>
*         <value1>...</value1>
*         <value2>...</value2>
*     </nested>
* </a:attribute>
* 
Returns
the name of the "nested" attribute , which is "Person" for this type

Definition at line 123 of file SugPersonAttribute.java.

String cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugPersonAttribute.getXmlBody ( )
protected

XML of the structured attribute looks like this:

* <a:attribute ...... >
*     <nested>
*         <value1>...</value1>
*         <value2>...</value2>
*     </nested>
* </a:attribute>
* 

This method returns the content of the a:attribute element with all nested elements.

Returns
Returns the content of the a:attribute element with all nested elements.

Definition at line 92 of file SugPersonAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugPersonAttribute.setRawValues ( Object  values) throws IllegalArgumentException

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

This method should not be used, because this type of attribute is processed in MessageProcessor.

Parameters
valuesnew value of the attribute in raw form from XML

Definition at line 105 of file SugPersonAttribute.java.

void cz.vutbr.fit.knot.annotations.modules.suggestionManager.attributes.SugPersonAttribute.setValue ( Object  person)

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

Parameters
personNew value of the attribute

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

Definition at line 71 of file SugPersonAttribute.java.


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