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
           
GRAPHICS
           
POINT
           
POLYLINE
           
REPLACEMENT
           
STRIKEOUT
           
TEXT
           
TYPEWRITER
           
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

STRIKEOUT

public static final AnnotationType STRIKEOUT

POLYLINE

public static final AnnotationType POLYLINE

TYPEWRITER

public static final AnnotationType TYPEWRITER

WATERMARK

public static final AnnotationType WATERMARK

REPLACEMENT

public static final AnnotationType REPLACEMENT

GRAPHICS

public static final AnnotationType GRAPHICS
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.