it.unimi.dico.islab.idbs2.map
Enum MappingSetType

java.lang.Object
  extended by java.lang.Enum<MappingSetType>
      extended by it.unimi.dico.islab.idbs2.map.MappingSetType
All Implemented Interfaces:
Serializable, Comparable<MappingSetType>

public enum MappingSetType
extends Enum<MappingSetType>

Representation of the possible MappingSet categories. For example the type "document" represents a MappingSet containing the comparison between two documents: the detail level of this MappingSet is the type "knowledge_chunk" which represents a comparison between two KnowledgeChunks, the first belonging to the first document of the higher level, the second belonging to the second document.

Author:
Vegeziel
See Also:
KnowledgeChunk, MappingSet

Enum Constant Summary
document
           
knowledge_chunk
           
mapping_set
           
 
Method Summary
 String toString()
           Get the String name of the choosed MappingSet type.
static MappingSetType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MappingSetType[] 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

document

public static final MappingSetType document

knowledge_chunk

public static final MappingSetType knowledge_chunk

mapping_set

public static final MappingSetType mapping_set
Method Detail

values

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

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

valueOf

public static MappingSetType 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

toString

public String toString()

Get the String name of the choosed MappingSet type.

Overrides:
toString in class Enum<MappingSetType>