com.groupdocs.annotation.data.constructor
Class AnnotationConstructor<T extends IAnnotation>

java.lang.Object
  extended by com.groupdocs.annotation.data.constructor.AnnotationConstructor<T>

public class AnnotationConstructor<T extends IAnnotation>
extends Object

Constructor for create Annotation object

Author:
Aleksey Permyakov (08.10.2014)

Method Summary
static AnnotationConstructor create()
          Create empty constructor with entity object
static
<P extends IAnnotation>
AnnotationConstructor<IAnnotation>
create(P entity)
          Create entity constructor with provided entity object
 T end()
          Get result entity object
 AnnotationConstructor insert()
          Inset entity to database
 IAnnotation select()
          Select entity from database by guid
static void setConstructor(IConstructor<IAnnotation> constructor)
          Setter for property 'constructor'.
 AnnotationConstructor withAccess(int access)
          Set access to entity object
 AnnotationConstructor withAnnotationLeft(double annotationLeft)
          Set entity left value to entity object
 AnnotationConstructor withAnnotationSessionId(int annotationSessionId)
          Set entity session ID value to entity object
 AnnotationConstructor withAnnotationTop(double annotationTop)
          Set entity top value to entity object
 AnnotationConstructor withCreatedOn(Date createdOn)
          Set created date to entity object
 AnnotationConstructor withFieldText(String fieldText)
          Set field text to entity object
 AnnotationConstructor withFontColor(int fontColor)
          Set font color to entity object
 AnnotationConstructor withFontFamily(String fontFamily)
          Set font family to entity object
 AnnotationConstructor withFontSize(float fontSize)
          Set font size value to entity object
 AnnotationConstructor withGuid(String guid)
          Set Guid to entity object
 AnnotationConstructor withHeight(double height)
          Set height to entity object
 AnnotationConstructor withId(int id)
          Set ID to entity object
 AnnotationConstructor withMarkerLeft(double markerLeft)
          Set marker left value to entity object
 AnnotationConstructor withMarkerTop(double markerTop)
          Set marker top value to entity object
 AnnotationConstructor withPageNumber(int pageNumber)
          Set page number to entity object
 AnnotationConstructor withPenColor(int penColor)
          Set pen color to entity object
 AnnotationConstructor withPenStyle(int penStyle)
          Set pen style to entity object
 AnnotationConstructor withPenWidth(int penWidth)
          Set pen width to entity object
 AnnotationConstructor withReplies(List<IReply> replies)
          Set replies to entity object
 AnnotationConstructor withSvgPath(String svgPath)
          Set svg path to entity object
 AnnotationConstructor withTextLength(int textLength)
          Set text length to entity object
 AnnotationConstructor withTextPosition(int textPosition)
          Set text position to entity object
 AnnotationConstructor withType(int type)
          Set type to entity object
 AnnotationConstructor withUserId(int userId)
          Set user id to entity object
 AnnotationConstructor withWidth(double width)
          Set width to entity object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static AnnotationConstructor create()
Create empty constructor with entity object

Returns:
entity constructor

create

public static <P extends IAnnotation> AnnotationConstructor<IAnnotation> create(P entity)
Create entity constructor with provided entity object

Returns:
reply constructor

setConstructor

public static void setConstructor(IConstructor<IAnnotation> constructor)
Setter for property 'constructor'.

Parameters:
constructor - Value to set for property 'constructor'.

withId

public AnnotationConstructor withId(int id)
Set ID to entity object

Parameters:
id - ID value
Returns:
entity constructor

withCreatedOn

public AnnotationConstructor withCreatedOn(Date createdOn)
Set created date to entity object

Parameters:
createdOn - created date
Returns:
entity constructor

withGuid

public AnnotationConstructor withGuid(String guid)
Set Guid to entity object

Parameters:
guid - Guid value
Returns:
entity constructor

withFontFamily

public AnnotationConstructor withFontFamily(String fontFamily)
Set font family to entity object

Parameters:
fontFamily - font family
Returns:
entity constructor

withAccess

public AnnotationConstructor withAccess(int access)
Set access to entity object

Parameters:
access - access value
Returns:
entity constructor

withAnnotationLeft

public AnnotationConstructor withAnnotationLeft(double annotationLeft)
Set entity left value to entity object

Parameters:
annotationLeft - entity left value
Returns:
entity constructor

withAnnotationTop

public AnnotationConstructor withAnnotationTop(double annotationTop)
Set entity top value to entity object

Parameters:
annotationTop - entity top
Returns:
entity constructor

withAnnotationSessionId

public AnnotationConstructor withAnnotationSessionId(int annotationSessionId)
Set entity session ID value to entity object

Parameters:
annotationSessionId - entity session ID
Returns:
entity constructor

withFieldText

public AnnotationConstructor withFieldText(String fieldText)
Set field text to entity object

Parameters:
fieldText - field text value
Returns:
entity constructor

withFontColor

public AnnotationConstructor withFontColor(int fontColor)
Set font color to entity object

Parameters:
fontColor - font color value
Returns:
entity constructor

withFontSize

public AnnotationConstructor withFontSize(float fontSize)
Set font size value to entity object

Parameters:
fontSize - font size value
Returns:
entity constructor

withHeight

public AnnotationConstructor withHeight(double height)
Set height to entity object

Parameters:
height - height value
Returns:
entity constructor

withWidth

public AnnotationConstructor withWidth(double width)
Set width to entity object

Parameters:
width - width value
Returns:
entity constructor

withMarkerLeft

public AnnotationConstructor withMarkerLeft(double markerLeft)
Set marker left value to entity object

Parameters:
markerLeft - marker left value
Returns:
entity constructor

withMarkerTop

public AnnotationConstructor withMarkerTop(double markerTop)
Set marker top value to entity object

Parameters:
markerTop - marker top value
Returns:
entity constructor

withPageNumber

public AnnotationConstructor withPageNumber(int pageNumber)
Set page number to entity object

Parameters:
pageNumber - page number
Returns:
entity constructor

withPenColor

public AnnotationConstructor withPenColor(int penColor)
Set pen color to entity object

Parameters:
penColor - pen color
Returns:
entity constructor

withPenStyle

public AnnotationConstructor withPenStyle(int penStyle)
Set pen style to entity object

Parameters:
penStyle - pen style
Returns:
entity constructor

withPenWidth

public AnnotationConstructor withPenWidth(int penWidth)
Set pen width to entity object

Parameters:
penWidth - pen width
Returns:
entity constructor

withReplies

public AnnotationConstructor withReplies(List<IReply> replies)
Set replies to entity object

Parameters:
replies - list of replies
Returns:
entity constructor

withSvgPath

public AnnotationConstructor withSvgPath(String svgPath)
Set svg path to entity object

Parameters:
svgPath - svg path
Returns:
entity constructor

withTextLength

public AnnotationConstructor withTextLength(int textLength)
Set text length to entity object

Parameters:
textLength - text length
Returns:
entity constructor

withTextPosition

public AnnotationConstructor withTextPosition(int textPosition)
Set text position to entity object

Parameters:
textPosition - text position
Returns:
entity constructor

withType

public AnnotationConstructor withType(int type)
Set type to entity object

Parameters:
type - type
Returns:
entity constructor

withUserId

public AnnotationConstructor withUserId(int userId)
Set user id to entity object

Parameters:
userId - user id
Returns:
entity constructor

end

public T end()
Get result entity object

Returns:
result entity object

insert

public AnnotationConstructor insert()
                             throws AnnotationException
Inset entity to database

Returns:
entity constructor
Throws:
AnnotationException

select

public IAnnotation select()
                   throws AnnotationException
Select entity from database by guid

Returns:
selected entity
Throws:
AnnotationException


Copyright © 2014. All rights reserved.