com.groupdocs.annotation.domain
Enum AnnotationType

java.lang.Object
  extended by java.lang.Enum<AnnotationType>
      extended by com.groupdocs.annotation.domain.AnnotationType
All Implemented Interfaces:
Serializable, Comparable<AnnotationType>

public enum AnnotationType
extends Enum<AnnotationType>

Annotation type

Author:
Aleksey Permyakov

Enum Constant Summary
AREA
           
ARROW
           
POINT
           
POLYLINE
           
RESOURCES_REDACTION
           
TEXT
           
TEXT_FIELD
           
TEXT_REDACTION
           
TEXT_REMOVAL
           
TEXT_REPLACEMENT
           
TEXT_STRIKEOUT
           
WATERMARK
           
 
Method Summary
 boolean equalsName(int id)
          Check if annotation type is equal
static AnnotationType fromValue(int id)
          Get annotation type by id
 String toString()
          Convert id to string
 int value()
          Get id
static AnnotationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AnnotationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TEXT

public static final AnnotationType TEXT

AREA

public static final AnnotationType AREA

POINT

public static final AnnotationType POINT

TEXT_STRIKEOUT

public static final AnnotationType TEXT_STRIKEOUT

POLYLINE

public static final AnnotationType POLYLINE

TEXT_FIELD

public static final AnnotationType TEXT_FIELD

WATERMARK

public static final AnnotationType WATERMARK

TEXT_REPLACEMENT

public static final AnnotationType TEXT_REPLACEMENT

TEXT_REMOVAL

public static final AnnotationType TEXT_REMOVAL

ARROW

public static final AnnotationType ARROW

TEXT_REDACTION

public static final AnnotationType TEXT_REDACTION

RESOURCES_REDACTION

public static final AnnotationType RESOURCES_REDACTION
Method Detail

values

public static AnnotationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AnnotationType c : AnnotationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AnnotationType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

equalsName

public boolean equalsName(int id)
Check if annotation type is equal

Parameters:
id - annotation type id to compare
Returns:

toString

public String toString()
Convert id to string

Overrides:
toString in class Enum<AnnotationType>
Returns:
id

fromValue

public static AnnotationType fromValue(int id)
Get annotation type by id

Parameters:
id - annotation type id
Returns:
annotation type

value

public int value()
Get id

Returns:
id


Copyright © 2014. All rights reserved.