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

Additional attribute of entity in annotation attribute. More...

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

Public Member Functions

 EntityAdditionalAttribute ()
 
 EntityAdditionalAttribute (Integer id)
 
 EntityAdditionalAttribute (Integer id, String name, String stringValue, EntityAttribute refEntityAttribute)
 
 EntityAdditionalAttribute (String name, String stringValue, EntityAttribute refEntityAttribute)
 
 EntityAdditionalAttribute (String name, String type, String stringValue, EntityAttribute refEntityAttribute)
 
Integer getId ()
 
void setId (Integer id)
 
String getName ()
 
void setName (String name)
 
String getType ()
 
void setType (String type)
 
String getStringValue ()
 
void setStringValue (String stringValue)
 
int getEntityId ()
 
EntityAttribute getRefEntityAttribute ()
 
void setRefEntityAttribute (EntityAttribute refEntityAttribute)
 
Integer getPriority ()
 
void setPriority (Integer priority)
 
String toXmlStringV2 ()
 
String toXMLResponseStringV2 ()
 
int hashCode ()
 
boolean equals (Object object)
 
String toString ()
 
int compareTo (Object o)
 

Protected Attributes

Integer priority
 

Private Attributes

Integer id
 
String name
 
String type
 
String stringValue
 
int entityId
 
EntityAttribute refEntityAttribute
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Additional attribute of entity in annotation attribute.

Additional attribute of entity in annotation attribute

Author
Martin Petr

Definition at line 52 of file EntityAdditionalAttribute.java.

Constructor & Destructor Documentation

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

Constructor

Definition at line 98 of file EntityAdditionalAttribute.java.

cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.EntityAdditionalAttribute ( Integer  id)

Constructor

Parameters
idId of attribute

Definition at line 106 of file EntityAdditionalAttribute.java.

cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.EntityAdditionalAttribute ( Integer  id,
String  name,
String  stringValue,
EntityAttribute  refEntityAttribute 
)

Constructor

Parameters
idId of attribute
nameName of attribute
stringValueValue of attribute
refEntityAttributeEntity attribute of annotation to which this additional attribute belongs

Definition at line 118 of file EntityAdditionalAttribute.java.

cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.EntityAdditionalAttribute ( String  name,
String  stringValue,
EntityAttribute  refEntityAttribute 
)

Constructor

Parameters
nameName of attribute
stringValueValue of attribute
refEntityAttributeEntity attribute of annotation to which this additional attribute belongs

Definition at line 132 of file EntityAdditionalAttribute.java.

cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.EntityAdditionalAttribute ( String  name,
String  type,
String  stringValue,
EntityAttribute  refEntityAttribute 
)

Constructor

Parameters
nameName of attribute
typeType of attribute
stringValueValue of attribute
refEntityAttributeEntity attribute of annotation to which this additional attribute belongs

Definition at line 146 of file EntityAdditionalAttribute.java.

Member Function Documentation

int cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.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 365 of file EntityAdditionalAttribute.java.

Here is the call graph for this function:

boolean cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.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 341 of file EntityAdditionalAttribute.java.

int cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getEntityId ( )

Gets id of entity attribute of annotation to which this additional attribute belongs

Returns
Returns id of entity attribute of annotation to which this additional attribute belongs

Definition at line 230 of file EntityAdditionalAttribute.java.

Integer cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getId ( )

Gets id of attribute

Returns
Id of attribute

Definition at line 158 of file EntityAdditionalAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getName ( )

Gets name of attribute

Returns
Returns name of attribute

Definition at line 176 of file EntityAdditionalAttribute.java.

Here is the caller graph for this function:

Integer cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getPriority ( )

Gets attribute priority

Returns
Returns attribute priority

Definition at line 257 of file EntityAdditionalAttribute.java.

Here is the caller graph for this function:

EntityAttribute cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getRefEntityAttribute ( )

Gets entity attribute of annotation to which this additional attribute belongs

Returns
Returns entity attribute of annotation to which this additional attribute belongs

Definition at line 239 of file EntityAdditionalAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getStringValue ( )

Gets value of attribute

Returns
Returns value of attribute

Definition at line 212 of file EntityAdditionalAttribute.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.getType ( )

Gets type of attribute

Returns
Returns type of attribute

Definition at line 194 of file EntityAdditionalAttribute.java.

int cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.hashCode ( )

Definition at line 327 of file EntityAdditionalAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.setId ( Integer  id)

Sets id of attribute

Parameters
idId of attribute

Definition at line 167 of file EntityAdditionalAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.setName ( String  name)

Sets name of attridbute

Parameters
nameReturns name of attribute

Definition at line 185 of file EntityAdditionalAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.setPriority ( Integer  priority)

Sets attribute priority

Parameters
priorityAttribute priority

Definition at line 266 of file EntityAdditionalAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.setRefEntityAttribute ( EntityAttribute  refEntityAttribute)

Sets entity attribute of annotation to which this additional attribute belongs

Parameters
refEntityAttributeEntity attribute of annotation to which this additional attribute belongs

Definition at line 248 of file EntityAdditionalAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.setStringValue ( String  stringValue)

Sets value of attribute

Parameters
stringValueValue of attribute

Definition at line 221 of file EntityAdditionalAttribute.java.

void cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.setType ( String  type)

Sets type of attribute

Parameters
typeNew type of attribute

Definition at line 203 of file EntityAdditionalAttribute.java.

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

Definition at line 353 of file EntityAdditionalAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.toXMLResponseStringV2 ( )

Returns serialized informations about attribute in XML for protocol V2 (in element for getEntities)

Returns
Returns serialized informations about attribute in XML for protocol V2

Definition at line 308 of file EntityAdditionalAttribute.java.

Here is the call graph for this function:

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.toXmlStringV2 ( )

Returns serialized informations about attribute in XML for protocol V2 (in Trix for annotation)

Returns
Returns serialized informations about attribute in XML

Definition at line 276 of file EntityAdditionalAttribute.java.

Member Data Documentation

int cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.entityId
private

Id of entity attribute of annotation to which this additional attribute belongs

Definition at line 88 of file EntityAdditionalAttribute.java.

Integer cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.id
private

Id of attribute

Definition at line 60 of file EntityAdditionalAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.name
private

Name of attribute

Definition at line 67 of file EntityAdditionalAttribute.java.

Integer cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.priority
protected

Attribute priority (for order)

Definition at line 83 of file EntityAdditionalAttribute.java.

EntityAttribute cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.refEntityAttribute
private

Entity attribute of annotation to which this additional attribute belongs

Definition at line 93 of file EntityAdditionalAttribute.java.

final long cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.serialVersionUID = 1L
staticprivate

Definition at line 53 of file EntityAdditionalAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.stringValue
private

Value of attribute

Definition at line 79 of file EntityAdditionalAttribute.java.

String cz.vutbr.fit.knot.annotations.entity.attribute.EntityAdditionalAttribute.type
private

Type of attribute

Definition at line 73 of file EntityAdditionalAttribute.java.


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