uk.ac.cam.spectra
Enum Combine

java.lang.Object
  extended by java.lang.Enum<Combine>
      extended by uk.ac.cam.spectra.Combine
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Combine>

public enum Combine
extends java.lang.Enum<Combine>

Simple enumeration of ways of combining metadata

Author:
Jim Downing

Enum Constant Summary
combine
          Statements will be added to the target model regardless of whether there are common subject-predicate statements present.
overwrite
          If a statement with equivalent subject and predicate exists in the target model, it will be removed and replaced with the statement passed in.
underwrite
          If a statement with equivalent subject and predicate exists in the target model, no statement will be added.
 
Method Summary
static Combine valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Combine[] 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

overwrite

public static final Combine overwrite
If a statement with equivalent subject and predicate exists in the target model, it will be removed and replaced with the statement passed in.


underwrite

public static final Combine underwrite
If a statement with equivalent subject and predicate exists in the target model, no statement will be added.


combine

public static final Combine combine
Statements will be added to the target model regardless of whether there are common subject-predicate statements present.

Method Detail

values

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

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

valueOf

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


Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.