AnnotationBase
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.ICloneable, java.lang.Cloneable, com.aspose.ms.System.IEquatable
public abstract class AnnotationBase implements System.ICloneable, Cloneable, System.IEquatable<AnnotationBase>
Base class for all annotation types
Constructors
Constructor | Description |
---|---|
AnnotationBase() |
Methods
Method | Description |
---|---|
getCounter() | |
setCounter(int counter) | |
getId() | Gets or sets annotation unique identifier |
setId(int value) | Gets or sets annotation unique identifier |
getCreatedOn() | Gets or sets annotation creation date |
setCreatedOn(Date value) | Gets or sets annotation creation date |
getMessage() | Gets or sets annotation message |
setMessage(String value) | Gets or sets annotation message |
getPageNumber() | Gets or sets page number to be annotated |
setPageNumber(Integer value) | Gets or sets page number to be annotated |
getReplies() | Represents annotation replies collection |
setReplies(List |
Represents annotation replies collection |
getStateBeforeAnnotation() | Text state before annotation |
setStateBeforeAnnotation(Object value) | Text state before annotation |
getType() | Gets or sets annotation type |
setType(int value) | Gets or sets annotation type |
getUser() | Gets or sets annotation creator |
setUser(User value) | Gets or sets annotation creator |
equals(AnnotationBase other) | Compares Base Annotations using IEquatable Equals method |
equals(Object obj) | Compares Base Annotations using standard object Equals method |
hashCode() | Returns HashCode of AnnotationBase Message, PageNumber and Type Properties |
deepClone() | Returns new Instance with same values |
toString() | |
toString(ToStringStyle toStringStyle) |
AnnotationBase()
public AnnotationBase()
getCounter()
public static int getCounter()
Returns: int
setCounter(int counter)
public static void setCounter(int counter)
Parameters:
Parameter | Type | Description |
---|---|---|
counter | int |
getId()
public final int getId()
Gets or sets annotation unique identifier
Returns: int -
setId(int value)
public final void setId(int value)
Gets or sets annotation unique identifier
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getCreatedOn()
public final Date getCreatedOn()
Gets or sets annotation creation date
Returns: java.util.Date -
setCreatedOn(Date value)
public final void setCreatedOn(Date value)
Gets or sets annotation creation date
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.Date |
getMessage()
public final String getMessage()
Gets or sets annotation message
Returns: java.lang.String -
setMessage(String value)
public final void setMessage(String value)
Gets or sets annotation message
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getPageNumber()
public final Integer getPageNumber()
Gets or sets page number to be annotated
Returns: java.lang.Integer -
setPageNumber(Integer value)
public final void setPageNumber(Integer value)
Gets or sets page number to be annotated
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Integer |
getReplies()
public final List<Reply> getReplies()
Represents annotation replies collection
Returns: java.util.List<com.groupdocs.annotation.models.Reply> -
setReplies(List value)
public final void setReplies(List<Reply> value)
Represents annotation replies collection
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.util.List<com.groupdocs.annotation.models.Reply> |
getStateBeforeAnnotation()
public final Object getStateBeforeAnnotation()
Text state before annotation
Returns: java.lang.Object -
setStateBeforeAnnotation(Object value)
public final void setStateBeforeAnnotation(Object value)
Text state before annotation
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.Object |
getType()
public final int getType()
Gets or sets annotation type
Returns: int -
setType(int value)
public final void setType(int value)
Gets or sets annotation type
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
getUser()
public final User getUser()
Gets or sets annotation creator
Returns: User -
setUser(User value)
public final void setUser(User value)
Gets or sets annotation creator
Parameters:
Parameter | Type | Description |
---|---|---|
value | User |
equals(AnnotationBase other)
public final boolean equals(AnnotationBase other)
Compares Base Annotations using IEquatable Equals method
Parameters:
Parameter | Type | Description |
---|---|---|
other | AnnotationBase | The AnnotationBase object to compare with the current object |
Returns: boolean -
equals(Object obj)
public boolean equals(Object obj)
Compares Base Annotations using standard object Equals method
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The object to compare with the current object |
Returns: boolean
hashCode()
public int hashCode()
Returns HashCode of AnnotationBase Message, PageNumber and Type Properties
Returns: int
deepClone()
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
toString()
public String toString()
Returns: java.lang.String
toString(ToStringStyle toStringStyle)
public String toString(ToStringStyle toStringStyle)
Parameters:
Parameter | Type | Description |
---|---|---|
toStringStyle | org.apache.commons.lang3.builder.ToStringStyle |
Returns: java.lang.String