AnnotationBase
Leave feedback
On this page
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
| Constructor | Description |
|---|---|
| AnnotationBase() |
| 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) |
public AnnotationBase()
public static int getCounter()
Returns: int
public static void setCounter(int counter)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| counter | int |
public final int getId()
Gets or sets annotation unique identifier
Returns: int -
public final void setId(int value)
Gets or sets annotation unique identifier
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final Date getCreatedOn()
Gets or sets annotation creation date
Returns: java.util.Date -
public final void setCreatedOn(Date value)
Gets or sets annotation creation date
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.util.Date |
public final String getMessage()
Gets or sets annotation message
Returns: java.lang.String -
public final void setMessage(String value)
Gets or sets annotation message
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final Integer getPageNumber()
Gets or sets page number to be annotated
Returns: java.lang.Integer -
public final void setPageNumber(Integer value)
Gets or sets page number to be annotated
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Integer |
public final List<Reply> getReplies()
Represents annotation replies collection
Returns: java.util.List<com.groupdocs.annotation.models.Reply> -
public final void setReplies(List<Reply> value)
Represents annotation replies collection
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.util.List<com.groupdocs.annotation.models.Reply> |
public final Object getStateBeforeAnnotation()
Text state before annotation
Returns: java.lang.Object -
public final void setStateBeforeAnnotation(Object value)
Text state before annotation
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.Object |
public final int getType()
Gets or sets annotation type
Returns: int -
public final void setType(int value)
Gets or sets annotation type
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final User getUser()
Gets or sets annotation creator
Returns: User -
public final void setUser(User value)
Gets or sets annotation creator
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | User |
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 -
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
public int hashCode()
Returns HashCode of AnnotationBase Message, PageNumber and Type Properties
Returns: int
public Object deepClone()
Returns new Instance with same values
Returns: java.lang.Object -
public String toString()
Returns: java.lang.String
public String toString(ToStringStyle toStringStyle)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| toStringStyle | org.apache.commons.lang3.builder.ToStringStyle |
Returns: java.lang.String
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.