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

Class representing attribute of type NestedAnnotation. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute:
Collaboration graph

Public Member Functions

 NestedAnnotationAttribute ()
 
 NestedAnnotationAttribute (String name, Annotation nestedAnnotation, Annotation refAnnotation)
 
Object getValue ()
 
void setValue (Object value)
 
void setRawValue (String value) throws IllegalArgumentException
 
String toXMLString (boolean proto11, boolean tmpIdForNested, boolean withOntology)
 
String toXMLStringWHV2 (String ontologyUri)
 
String getTypeOntologyUri ()
 
- Public Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.BaseAttribute
 BaseAttribute ()
 
 BaseAttribute (Integer id)
 
String getTypeOntologyUri ()
 
String toXMLString (boolean proto11, boolean tmpIdForNested, boolean withOntology)
 
String getValueType ()
 
String getTypeUriV2 ()
 
String toXMLStringV2 ()
 
String toSXMLString ()
 
EntityAdditionalAttribute toEntityAdditionalAttribute ()
 
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 getAnnotation ()
 
void setAnnotation (int annotation)
 
Annotation getRefAnnotation ()
 
void setRefAnnotation (Annotation value)
 
AnnotType getAttributeType ()
 
void setAttributeType (AnnotType attributeType)
 
Annotation getNestedAnnotation ()
 
String getNestedID ()
 
void setNestedID (String nest)
 
void setLinkedID (int link)
 
void setNestedAnnotation (Annotation nestedAnnotation)
 
Annotation getLinkedAnnotation ()
 
void setLinkedAnnotation (Annotation linkedAnnotation)
 
Integer getId ()
 
void setId (Integer id)
 
Integer getType ()
 
void setType (Integer type)
 
boolean isStructured ()
 
void setUser (User user)
 
void setUri (String uri)
 
String getUri ()
 
void setUriInOntology (String uriInOntology)
 
String getUriInOntology ()
 
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 ()
 
void setTextValue (String textValue)
 
Integer getUserValue ()
 
Integer getPriority ()
 
void setPriority (Integer priority)
 
List< EntityAdditionalAttributegetEntityAdditionalAttributes ()
 
String toJSONString ()
 
void updateFromBaseAttributeAll (BaseAttribute ba)
 
void updateFromSugBaseAttributeAll (SugBaseAttribute ba)
 

Additional Inherited Members

- Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.BaseAttribute
String getCommentXmlPart (boolean proto11)
 
String xmlFormatValue ()
 
- 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< EntityAdditionalAttributeentityAdditionalAttributes
 
- Static Protected Attributes inherited from cz.vutbr.fit.knot.annotations.entity.attribute.BaseAttribute
static final long serialVersionUID = 1L
 

Detailed Description

Class representing attribute of type NestedAnnotation.

Class representing attribute of type NestedAnnotation

Definition at line 37 of file NestedAnnotationAttribute.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.NestedAnnotationAttribute ( )

Constructor

Definition at line 42 of file NestedAnnotationAttribute.java.

cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.NestedAnnotationAttribute ( String  name,
Annotation  nestedAnnotation,
Annotation  refAnnotation 
)

Constructor

Parameters
nameName of the attribute
nestedAnnotationValue of the attribute
refAnnotationAnnotation to which this attribute belongs.

Definition at line 52 of file NestedAnnotationAttribute.java.

Member Function Documentation

String cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.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 286 of file NestedAnnotationAttribute.java.

Object cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.getValue ( )

Gets value of the attribute

Returns
value of the attribute

Definition at line 65 of file NestedAnnotationAttribute.java.

Here is the caller graph for this function:

void cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.setRawValue ( String  value) 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
valuenew value of the attribute in raw form from XML

Definition at line 94 of file NestedAnnotationAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.setValue ( Object  value)

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

Parameters
valueNew value of the attribute

Definition at line 75 of file NestedAnnotationAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.toXMLString ( boolean  proto11,
boolean  tmpIdForNested,
boolean  withOntology 
)

Returns serialized informations about attribute of annotation in XML

Parameters
proto11If true, protocol version is greater then 1.0
tmpIdForNestedIf true, nested annotations will have attribute tmpId
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 107 of file NestedAnnotationAttribute.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.entity.attribute.NestedAnnotationAttribute.toXMLStringWHV2 ( String  ontologyUri)

Returns serialized informations about attribute of annotation in XML for protocol v. 2.0 without header (target and attribute specification triples)

Parameters
ontologyUriURI of attribute in ontology
Returns
Returns serialized informations about attribute of annotation in XML

Definition at line 170 of file NestedAnnotationAttribute.java.


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