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

Class representing annotated copy of document. More...

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

Public Member Functions

 AnnotDocument ()
 
 AnnotDocument (Integer id)
 
 AnnotDocument (String uri, String content)
 
Integer getId ()
 
void setId (Integer id)
 
String getUri ()
 
void setUri (String uri)
 
String getUriForAnnot ()
 
Date getAdded ()
 
void setAdded (Date added)
 
Date getModified ()
 
void setModified (Date modified)
 
String getContent ()
 
void setContent (String content)
 
int hashCode ()
 
boolean equals (Object object)
 
String toString ()
 

Private Attributes

Integer id
 
String uri
 
Date added
 
Date modified
 
String content
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Class representing annotated copy of document.

Class representing annotated copy of document

Author
idytrych

Definition at line 46 of file AnnotDocument.java.

Constructor & Destructor Documentation

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

Constructor

Definition at line 76 of file AnnotDocument.java.

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

Constructor

Parameters
idid of object

Definition at line 84 of file AnnotDocument.java.

cz.vutbr.fit.knot.annotations.entity.AnnotDocument.AnnotDocument ( String  uri,
String  content 
)

Constructor

Parameters
uriURI of original document
contentDocument content

Definition at line 94 of file AnnotDocument.java.

Member Function Documentation

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

Here is the caller graph for this function:

Date cz.vutbr.fit.knot.annotations.entity.AnnotDocument.getAdded ( )

Gets date of document addition (creation of annotated copy)

Returns
Returns date of document addition (creation of annotated copy)

Definition at line 152 of file AnnotDocument.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotDocument.getContent ( )

Gets textual content of document

Returns
Returns textual content of document

Definition at line 188 of file AnnotDocument.java.

Here is the caller graph for this function:

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

Gets id of annotated copy of document

Returns
Returns id of annotated copy of document

Definition at line 106 of file AnnotDocument.java.

Here is the caller graph for this function:

Date cz.vutbr.fit.knot.annotations.entity.AnnotDocument.getModified ( )

Gets date of last document modification

Returns
Returns date of last document modification

Definition at line 170 of file AnnotDocument.java.

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

Gets URI of original document

Returns
URI of original document

Definition at line 124 of file AnnotDocument.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.AnnotDocument.getUriForAnnot ( )

Gets URI of annotated copy of document URI = base uri + document id

Returns
Returns URI of annotated copy of document

Definition at line 143 of file AnnotDocument.java.

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

Definition at line 202 of file AnnotDocument.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotDocument.setAdded ( Date  added)

Sets date of document addition (creation of annotated copy)

Parameters
addedDate of document addition (creation of annotated copy)

Definition at line 161 of file AnnotDocument.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotDocument.setContent ( String  content)

Sets textual content of document

Parameters
contentTextual content of document

Definition at line 197 of file AnnotDocument.java.

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

Sets id of annotated copy of document

Parameters
idId of annotated copy of document

Definition at line 115 of file AnnotDocument.java.

void cz.vutbr.fit.knot.annotations.entity.AnnotDocument.setModified ( Date  modified)

Sets date of last document modification

Parameters
modifiedDate of last document modification

Definition at line 179 of file AnnotDocument.java.

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

Sets URI of original document

Parameters
uriURI of original document

Definition at line 133 of file AnnotDocument.java.

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

Definition at line 228 of file AnnotDocument.java.

Member Data Documentation

Date cz.vutbr.fit.knot.annotations.entity.AnnotDocument.added
private

Date of document addition (creation of annotated copy)

Definition at line 62 of file AnnotDocument.java.

String cz.vutbr.fit.knot.annotations.entity.AnnotDocument.content
private

Document content

Definition at line 71 of file AnnotDocument.java.

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

ID of annotated copy of document

Definition at line 53 of file AnnotDocument.java.

Date cz.vutbr.fit.knot.annotations.entity.AnnotDocument.modified
private

Date of document modification

Definition at line 66 of file AnnotDocument.java.

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

Definition at line 47 of file AnnotDocument.java.

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

URI of original document

Definition at line 57 of file AnnotDocument.java.


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