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

Class representing type of annotation. More...

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

Public Member Functions

 AnnotType ()
 
 AnnotType (Integer id)
 
 AnnotType (String uri, String name, AnnotType ancestorT, UserGroup group)
 
Integer getId ()
 
void setId (Integer id)
 
String getUri ()
 
void setUri (String uri)
 
String getName ()
 
void setName (String name)
 
Integer getAncestor ()
 
void setAncestor (Integer ancestor)
 
void setAncestorType (AnnotType ancestorType)
 
List< AnnotTypegetAncestorTypes ()
 
void setAncestorTypes (List< AnnotType > ancestorTypes)
 
ArrayList< AnnotTypegetAncestorTypesAL ()
 
void addAncestorType (AnnotType ancestor)
 
AnnotType getAncestorType ()
 
List< AnnotTypeAttrgetAttributes ()
 
void setAttributes (ArrayList< AnnotTypeAttr > attributes)
 
UserGroup getGroup ()
 
void setGroup (UserGroup group)
 
String getUriInOntology ()
 
void setUriInOntology (String uriInOntology)
 
int hashCode ()
 
boolean equals (Object object)
 
String toString ()
 
String toXMLString (boolean withAncestors)
 
String toXMLStringV2 (boolean withAncestors)
 
String toXMLStringWAV2 (boolean withAncestors)
 
String toXMLStringWA (boolean withAncestors)
 
String getGeneratedURI ()
 
String getLinearizedName ()
 
String linearizedNameToUri (String linName)
 
Boolean getRestrictedAtt ()
 
void setRestrictedAtt (Boolean restrictedAtt)
 
String getComment ()
 
void setComment (String comment)
 

Public Attributes

List< AnnotTypeancestorTypes
 

Private Attributes

Integer id
 
String uri
 
String name
 
Integer ancestor
 
Integer groupId
 
Boolean restrictedAtt
 
String uriInOntology
 
String comment
 
List< AnnotTypeAttrattributes
 
AnnotType ancestorType
 
UserGroup group
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Class representing type of annotation.

Class representing type of annotation

Author
idytrych

Definition at line 58 of file AnnotType.java.

Constructor & Destructor Documentation

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

Constructor

Definition at line 121 of file AnnotType.java.

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

Constructor of reference objects for searching purposes - no initialization needed

Parameters
idId of annotation type

Definition at line 130 of file AnnotType.java.

cz.vutbr.fit.knot.annotations.entity.AnnotType.AnnotType ( String  uri,
String  name,
AnnotType  ancestorT,
UserGroup  group 
)

Constructor

Parameters
uriURI of type of annotation
nameName of type of annotation
ancestorTAncestor of type of annotation
groupUser group to which type of annotation belongs

Definition at line 142 of file AnnotType.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.entity.AnnotType.addAncestorType ( AnnotType  ancestor)

Adds ancestor to list of ancestor types

Parameters
ancestorAncestor type

Definition at line 272 of file AnnotType.java.

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

Integer cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestor ( )

Gets id of ancestor type of annotation

Returns
Returns id of ancestor type of annotation

Definition at line 218 of file AnnotType.java.

AnnotType cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestorType ( )

Gets ancestor type of annotation

Returns
Returns ancestor type of annotation

Definition at line 286 of file AnnotType.java.

Here is the caller graph for this function:

List<AnnotType> cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestorTypes ( )

Gets list of ancestor types

Returns
Returns list of ancestor types

Definition at line 245 of file AnnotType.java.

Here is the caller graph for this function:

ArrayList<AnnotType> cz.vutbr.fit.knot.annotations.entity.AnnotType.getAncestorTypesAL ( )

Gets list of ancestor types in ArrayList

Returns
Returns ArrayList with ancestor types

Definition at line 263 of file AnnotType.java.

Here is the caller graph for this function:

List<AnnotTypeAttr> cz.vutbr.fit.knot.annotations.entity.AnnotType.getAttributes ( )

Gets list of attributes

Returns
Returns list of attributes

Definition at line 295 of file AnnotType.java.

Here is the caller graph for this function:

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

Gets textual comment

Returns
Returns textual comment

Definition at line 695 of file AnnotType.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.AnnotType.getGeneratedURI ( )

Generate URI of type of annotation from his name, ancestor and user group URI = base URI + "/g" + user group id + "/"

  • names of ancestors separated by "/"
  • "/" + name of type
Returns
Generated URI of type of annotation

Definition at line 610 of file AnnotType.java.

Here is the caller graph for this function:

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

Gets user group to which type of annotation belongs

Returns
Returns user group to which type of annotation belongs

Definition at line 313 of file AnnotType.java.

Here is the caller graph for this function:

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

Gets id of type of annotation

Returns
Returns id of type

Definition at line 164 of file AnnotType.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.AnnotType.getLinearizedName ( )

Gets linearized name of type of annotation LN = names of ancestors separated by " -> "

  • " -> " + name of type
Returns
Linearized name of type of annotation

Definition at line 641 of file AnnotType.java.

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

Gets name of type of annotation

Returns
Returns name of type of annotation

Definition at line 200 of file AnnotType.java.

Here is the caller graph for this function:

Boolean cz.vutbr.fit.knot.annotations.entity.AnnotType.getRestrictedAtt ( )

Gets indicator of restricted attributes If true, new attributes can't be added.

Returns
returns indicator of restricted attributes

Definition at line 676 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.getUri ( )

Gets URI of type of annotation

Returns
Returns URI of type of annotation

Definition at line 182 of file AnnotType.java.

Here is the caller graph for this function:

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

Gets URI in original ontology

Returns
Returns URI in original ontology

Definition at line 331 of file AnnotType.java.

Here is the caller graph for this function:

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

Definition at line 345 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.linearizedNameToUri ( String  linName)

Converts linearized name of type of annotation to his URI

Parameters
linNameLinearized name of type of annotation
Returns
URI of given type of annotation

Definition at line 666 of file AnnotType.java.

Here is the call graph for this function:

void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAncestor ( Integer  ancestor)

Sets id of ancestor type of annotation

Parameters
ancestorid of new ancestor

Definition at line 227 of file AnnotType.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAncestorType ( AnnotType  ancestorType)

Sets ancestor type of annotation

Parameters
ancestorTypeAncestor type of annotation

Definition at line 236 of file AnnotType.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAncestorTypes ( List< AnnotType ancestorTypes)

Sets list of ancestor types

Parameters
ancestorTypesList of ancestor types

Definition at line 254 of file AnnotType.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotType.setAttributes ( ArrayList< AnnotTypeAttr attributes)

Sets list of attributes

Parameters
attributesList of attributes

Definition at line 304 of file AnnotType.java.

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

Sets textual comment

Parameters
commentTextual comment

Definition at line 704 of file AnnotType.java.

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

Sets user group to which type of annotation belongs

Parameters
groupUser group to which type of annotation belongs

Definition at line 322 of file AnnotType.java.

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

Sets id of type of annotation

Parameters
idId of type of annotation

Definition at line 173 of file AnnotType.java.

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

Sets name of type of annotation

Parameters
nameName of type of annotation

Definition at line 209 of file AnnotType.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotType.setRestrictedAtt ( Boolean  restrictedAtt)

Sets indicator of restricted attributes If true, new attributes can't be added.

Parameters
restrictedAttIndicator of restricted attributes

Definition at line 686 of file AnnotType.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotType.setUri ( String  uri)

Sets URI of type of annotation

Parameters
uriURI of type of annotation

Definition at line 191 of file AnnotType.java.

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

Sets URI in original ontology

Parameters
uriInOntologyURI in original ontology

Definition at line 340 of file AnnotType.java.

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

Definition at line 371 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLString ( boolean  withAncestors)

Returns serialized informations about type of annotation in XML

Parameters
withAncestorsIf true, list of ancestors will be serialized, if false, list will be omitted
Returns
Returns serialized informations about type of annotation in XML

Definition at line 381 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLStringV2 ( boolean  withAncestors)

Returns serialized informations about type of annotation in XML for protocol version 2.

Parameters
withAncestorsIf true, list of ancestors will be serialized, if false, list will be omitted
Returns
Returns serialized informations about type of annotation in XML for protocol version 2

Definition at line 451 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLStringWA ( boolean  withAncestors)

Returns serialized informations about type of annotation without attributes in XML

Parameters
withAncestorsIf true, list of ancestors will be serialized, if false, list will be omitted
Returns
Returns serialized informations about type of annotation without attributes in XML

Definition at line 579 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.toXMLStringWAV2 ( boolean  withAncestors)

Returns serialized informations about type of annotation without attributes in XML for protocol version 2.

Parameters
withAncestorsIf true, list of ancestors will be serialized, if false, list will be omitted
Returns
Returns serialized informations about type of annotation without attributes in XML for protocol version 2

Definition at line 523 of file AnnotType.java.

Member Data Documentation

Integer cz.vutbr.fit.knot.annotations.entity.AnnotType.ancestor
private

Id of primary ancestor of type (ancestor for old clients)

Definition at line 77 of file AnnotType.java.

AnnotType cz.vutbr.fit.knot.annotations.entity.AnnotType.ancestorType
private

Primary ancestor of type (ancestor for old clients)

Definition at line 103 of file AnnotType.java.

List<AnnotType> cz.vutbr.fit.knot.annotations.entity.AnnotType.ancestorTypes

List of ancestors of this type

Definition at line 116 of file AnnotType.java.

List<AnnotTypeAttr> cz.vutbr.fit.knot.annotations.entity.AnnotType.attributes
private

Attributes of annotation type

Definition at line 99 of file AnnotType.java.

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

Comment

Definition at line 94 of file AnnotType.java.

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

User group to which this type belongs

Definition at line 107 of file AnnotType.java.

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

Id of user group to which this type belongs

Definition at line 81 of file AnnotType.java.

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

Annotation type id

Definition at line 65 of file AnnotType.java.

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

Name of type

Definition at line 73 of file AnnotType.java.

Boolean cz.vutbr.fit.knot.annotations.entity.AnnotType.restrictedAtt
private

Indicator of restricted attributes

Definition at line 85 of file AnnotType.java.

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

Definition at line 59 of file AnnotType.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotType.uri
private

URI of type

Definition at line 69 of file AnnotType.java.

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

URI in original ontology

Definition at line 89 of file AnnotType.java.


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