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

Class representing attribute of unknown type of annotation. More...

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

Public Member Functions

 TypeAttrOnto ()
 
 TypeAttrOnto (Integer id)
 
 TypeAttrOnto (UserGroup group, String name, String simpleType)
 
 TypeAttrOnto (UserGroup group, String name, AnnotType structuredType)
 
Integer getId ()
 
void setId (Integer id)
 
UserGroup getGroup ()
 
void setGroup (UserGroup group)
 
String getName ()
 
void setName (String name)
 
String getSimpleType ()
 
void setSimpleType (String simpleType)
 
Integer getType ()
 
void setType (Integer type)
 
AnnotType getAttributeType ()
 
void setAttributeType (AnnotType attributeType)
 
String getUriInOntology ()
 
void setUriInOntology (String uriInOntology)
 
String getComment ()
 
void setComment (String comment)
 
int hashCode ()
 
boolean equals (Object object)
 
boolean contentEquals (Object obj)
 
String toString ()
 
String toXMLString ()
 
String toXMLStringV2 ()
 

Private Member Functions

String simpleTypeToString ()
 

Private Attributes

Integer id
 
Integer groupId
 
String name
 
String simpleType
 
Integer type
 
String uriInOntology
 
String comment
 
AnnotType attributeType
 
UserGroup group
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Class representing attribute of unknown type of annotation.

Class representing attribute of unknown type of annotation imported from ontology

Author
idytrych

Definition at line 51 of file TypeAttrOnto.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.TypeAttrOnto ( )

Constructor

Definition at line 98 of file TypeAttrOnto.java.

cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.TypeAttrOnto ( Integer  id)

Constructor

Parameters
idid of attribute of type of annotation

Definition at line 106 of file TypeAttrOnto.java.

cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.TypeAttrOnto ( UserGroup  group,
String  name,
String  simpleType 
)

Constructor of attribute of simple type

Parameters
groupUser group to which attribute belongs
nameName of attribute
simpleTypeName of simple type of attribute

Definition at line 117 of file TypeAttrOnto.java.

cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.TypeAttrOnto ( UserGroup  group,
String  name,
AnnotType  structuredType 
)

Constructor of attribute of structured type

Parameters
groupUser group to which attribute belongs
nameName of attribute
structuredTypeType of structured attribute (type of annotation)

Definition at line 134 of file TypeAttrOnto.java.

Member Function Documentation

boolean cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.contentEquals ( Object  obj)

Compares this with other object and returns, whether objects are same type and have same content (id is irelevant).

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

Definition at line 324 of file TypeAttrOnto.java.

boolean cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.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 306 of file TypeAttrOnto.java.

AnnotType cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getAttributeType ( )

Gets type of attribute in case that this is attribute of structured type (type of annotation)

Returns
If type of attribute is structured, returns type of annotation, else returns null

Definition at line 242 of file TypeAttrOnto.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getComment ( )

Gets textual comment

Returns
Returns textual comment

Definition at line 278 of file TypeAttrOnto.java.

UserGroup cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getGroup ( )

Gets user group to which attribute belongs

Returns
Returns user group to which attribute belongs

Definition at line 167 of file TypeAttrOnto.java.

Here is the caller graph for this function:

Integer cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getId ( )

Gets id of attribute of type of annotation

Returns
Returns id of attribute of type of annotation

Definition at line 149 of file TypeAttrOnto.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getName ( )

Gets name of attribute of type of annotation

Returns
Returns name of attribute of type of annotation

Definition at line 185 of file TypeAttrOnto.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getSimpleType ( )

Gets name of simple type of annotation

Returns
If type of attribute is simple, returns name of type, else returns ""

Definition at line 203 of file TypeAttrOnto.java.

Integer cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getType ( )

Gets id of type of attribute in case that this is attribute of structured type (type of annotation)

Returns
If type of attribute is structured, returns id of type of annotation, else returns null

Definition at line 222 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.getUriInOntology ( )

Gets URI in original ontology

Returns
Returns URI in original ontology

Definition at line 260 of file TypeAttrOnto.java.

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.hashCode ( )

Definition at line 292 of file TypeAttrOnto.java.

void cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.setAttributeType ( AnnotType  attributeType)

Sets structured type of attribute (only for attribute of structured type)

Parameters
attributeTypeStructured type of attribute (type of annotation), or null for simple type

Definition at line 251 of file TypeAttrOnto.java.

void cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.setComment ( String  comment)

Sets textual comment

Parameters
commentTextual comment

Definition at line 287 of file TypeAttrOnto.java.

void cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.setGroup ( UserGroup  group)

Sets user group to which attribute belongs

Parameters
groupUser group to which attribute belongs

Definition at line 176 of file TypeAttrOnto.java.

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

Sets id of attribute of type of annotation

Parameters
idId of attribute of type of annotation

Definition at line 158 of file TypeAttrOnto.java.

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

Sets name of attribute of type of annotation

Parameters
nameName of attribute of type of annotation

Definition at line 194 of file TypeAttrOnto.java.

void cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.setSimpleType ( String  simpleType)

Sets name of simple type of annotation (only for attributes of simple type)

Parameters
simpleTypeName of simple type of annotation ("" for structured type)

Definition at line 212 of file TypeAttrOnto.java.

void cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.setType ( Integer  type)

Sets id of type of attribute in case that this is attribute of structured type (type of annotation)

Parameters
typenew type

Definition at line 232 of file TypeAttrOnto.java.

void cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.setUriInOntology ( String  uriInOntology)

Sets URI in original ontology

Parameters
uriInOntologyURI in original ontology

Definition at line 269 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.simpleTypeToString ( )
private

Returns serialized informations about attribute of simple type in XML

Returns
Returns serialized informations about attribute of simple type in XML

Definition at line 360 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.toString ( )

Definition at line 351 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.toXMLString ( )

Returns serialized informations about attribute of type of annotation in XML

Returns
Returns serialized informations about attribute of type of annotation in XML

Definition at line 389 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.toXMLStringV2 ( )

Returns serialized informations about attribute of type of annotation in XML for protocol V2

Returns
Returns serialized informations about attribute of type of annotation in XML for protocol V2

Definition at line 414 of file TypeAttrOnto.java.

Member Data Documentation

AnnotType cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.attributeType
private

Type of attribute in case that this is attribute of structured type (type of annotation)

Definition at line 89 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.comment
private

Comment

Definition at line 84 of file TypeAttrOnto.java.

UserGroup cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.group
private

User group to which this attribute belongs

Definition at line 93 of file TypeAttrOnto.java.

Integer cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.groupId
private

Id of user group to which this attribute belongs

Definition at line 62 of file TypeAttrOnto.java.

Integer cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.id
private

Id of attribute of type of annotation

Definition at line 58 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.name
private

Name of attribute

Definition at line 66 of file TypeAttrOnto.java.

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

Definition at line 52 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.simpleType
private

Name of simple type of attribute

Definition at line 69 of file TypeAttrOnto.java.

Integer cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.type
private

Id of type of attribute in case that this is attribute of structured type (type of annotation)

Definition at line 75 of file TypeAttrOnto.java.

String cz.vutbr.fit.knot.annotations.entity.TypeAttrOnto.uriInOntology
private

URI in original ontology

Definition at line 79 of file TypeAttrOnto.java.


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