eu.planets_project.services.identify
Enum IdentifyResult.Method

java.lang.Object
  extended by java.lang.Enum<IdentifyResult.Method>
      extended by eu.planets_project.services.identify.IdentifyResult.Method
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<IdentifyResult.Method>
Enclosing class:
IdentifyResult

public static enum IdentifyResult.Method
extends java.lang.Enum<IdentifyResult.Method>

The Method enumeration is intended to allow you state what kind of evidence was used to create this identification result.


Enum Constant Summary
EXTENSION
          'Extension' means that this identification was based purely on the filename extension of the supplied digital object.
FULL_PARSE
          'Full Parse' means that this identification was based on a detailed inspection of the digital object bytestream, and every single bit was 'touched'.
MAGIC
          'Magic' means that this identification was based on matching the digital object bytes against a bytestream signature, a.k.a.
METADATA
          'Metadata' means that this identification was based on other metadata supplied with the digital object, but the objects bytes were not inspected.
OTHER
          Means that this identification was based on some other evidence.
PARTIAL_PARSE
          'Partial Parse' means that this identification was based on a detailed inspection of the digital object bytestreams, and a significant proportion of the objects bytes were used to reach this conclusion.
 
Method Summary
static IdentifyResult.Method valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static IdentifyResult.Method[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXTENSION

public static final IdentifyResult.Method EXTENSION
'Extension' means that this identification was based purely on the filename extension of the supplied digital object.


METADATA

public static final IdentifyResult.Method METADATA
'Metadata' means that this identification was based on other metadata supplied with the digital object, but the objects bytes were not inspected.


MAGIC

public static final IdentifyResult.Method MAGIC
'Magic' means that this identification was based on matching the digital object bytes against a bytestream signature, a.k.a. a 'file Magic number'. In this case, a small set of bytes from the file has been inspected, and in general the inspection does not depend on the file size.


PARTIAL_PARSE

public static final IdentifyResult.Method PARTIAL_PARSE
'Partial Parse' means that this identification was based on a detailed inspection of the digital object bytestreams, and a significant proportion of the objects bytes were used to reach this conclusion.


FULL_PARSE

public static final IdentifyResult.Method FULL_PARSE
'Full Parse' means that this identification was based on a detailed inspection of the digital object bytestream, and every single bit was 'touched'.


OTHER

public static final IdentifyResult.Method OTHER
Means that this identification was based on some other evidence. Please contact the IF so that more Methods can be added.

Method Detail

values

public static IdentifyResult.Method[] 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 (IdentifyResult.Method c : IdentifyResult.Method.values())
    System.out.println(c);

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

valueOf

public static IdentifyResult.Method valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.