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

Class representing attribute of type GeoPoint. More...

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

Classes

class  GeoPoint
 This class represents GeoPoint value. More...
 

Public Member Functions

 GeoPointAttribute ()
 
 GeoPointAttribute (String name, BigDecimal geoLat, BigDecimal geoLong, Annotation refAnnotation)
 
Object getValue ()
 
void setValue (Object value)
 
void setRawValues (Object values) throws IllegalArgumentException
 
String getXmlAttributeName ()
 
void setStringValue (String GPointEncoded) throws IllegalArgumentException
 
void setStringValue (String latitude, String longitude) throws IllegalArgumentException
 
String toString ()
 
String getTypeOntologyUri ()
 
- Public Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.StructuredAttribute
String getCommentXmlPart (boolean proto11)
 
String toXMLString (boolean proto11, boolean tmpIdForNested, 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.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)
 

Protected Member Functions

String getXmlBody ()
 
- Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.StructuredAttribute
String getXmlStart (boolean withOntology)
 
String getXmlEnd ()
 
abstract String getXmlBody ()
 
- Protected Member Functions inherited from cz.vutbr.fit.knot.annotations.entity.attribute.BaseAttribute
String getCommentXmlPart (boolean proto11)
 
String xmlFormatValue ()
 

Additional Inherited Members

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

Class representing attribute of type GeoPoint

Definition at line 38 of file GeoPointAttribute.java.

Constructor & Destructor Documentation

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

Constructor

Definition at line 43 of file GeoPointAttribute.java.

cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.GeoPointAttribute ( String  name,
BigDecimal  geoLat,
BigDecimal  geoLong,
Annotation  refAnnotation 
)

Constructor for GeoPointAttribute

Parameters
nameName of attribute
geoLatLatitude
geoLongLongitude
refAnnotationAnnotation to which this attribute belongs

Definition at line 54 of file GeoPointAttribute.java.

Member Function Documentation

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

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

Gets value of the attribute

Returns
value of the attribute

Definition at line 68 of file GeoPointAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.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 "geo:Point" for this type

Definition at line 145 of file GeoPointAttribute.java.

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

void cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.setRawValues ( Object  values) throws IllegalArgumentException

Parses provided values and sets that values as a values of the attribute

Parameters
valuesNew values of the attribute in raw forms from XML

Definition at line 116 of file GeoPointAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.setStringValue ( String  GPointEncoded) throws IllegalArgumentException

Parses provided string value and sets that value as a values of the attribute

This method can be used for parse value from string received in JSON object

Parameters
GPointEncodedNew values of the attribute in String

Definition at line 156 of file GeoPointAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.setStringValue ( String  latitude,
String  longitude 
) throws IllegalArgumentException

Definition at line 177 of file GeoPointAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.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 78 of file GeoPointAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.GeoPointAttribute.toString ( )

Encode values of the attribute to one string

This method can be used for generating value for JSON object

Returns
Encoded values of the attribute in one string

Definition at line 202 of file GeoPointAttribute.java.


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