au.csiro.pidclient
Enum AndsPidClient.HandleType

java.lang.Object
  extended by java.lang.Enum<AndsPidClient.HandleType>
      extended by au.csiro.pidclient.AndsPidClient.HandleType
All Implemented Interfaces:
Serializable, Comparable<AndsPidClient.HandleType>
Enclosing class:
AndsPidClient

public static enum AndsPidClient.HandleType
extends Enum<AndsPidClient.HandleType>

The possible types of properties that can be associated with a handle. Each handle (PID) can carry multiple (max of around 100) properties.


Enum Constant Summary
DESC
          A property with a descriptive text value.
EMPTY
          A property with no associated value.
URL
          A property with a URL value.
 
Method Summary
 boolean isEmpty()
           
 String value()
           
static AndsPidClient.HandleType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AndsPidClient.HandleType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EMPTY

public static final AndsPidClient.HandleType EMPTY
A property with no associated value.


URL

public static final AndsPidClient.HandleType URL
A property with a URL value.


DESC

public static final AndsPidClient.HandleType DESC
A property with a descriptive text value.

Method Detail

values

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

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

valueOf

public static AndsPidClient.HandleType 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

value

public String value()
Returns:
the value of the enumeration.

isEmpty

public boolean isEmpty()
Returns:
whether this enumeration is empty.


Copyright © 2010. All Rights Reserved.