com.orchestranetworks.service
Class ImportSpecMode

java.lang.Object
  extended bycom.orchestranetworks.service.ImportSpecMode

public final class ImportSpecMode
extends Object

Defines the possible modes for an XML import.


Field Summary
static ImportSpecMode INSERT
           
static ImportSpecMode UPDATE
           
static ImportSpecMode UPDATE_OR_INSERT
           
 
Method Summary
 String format()
          Returns a persistent identifier of this definition mode.
 String getLabel()
          Returns a human-readable label for this definition mode.
 boolean isInsert()
          Returns true if this is INSERT mode.
 boolean isUpdate()
          Returns true if this is UPDATE mode.
 boolean isUpdateOrInsert()
          Returns true if this is UPDATE_OR_INSERT mode.
static ImportSpecMode parse(String aFlag)
          Returns the definition mode that corresponds to the string specified.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPDATE

public static final ImportSpecMode UPDATE

INSERT

public static final ImportSpecMode INSERT

UPDATE_OR_INSERT

public static final ImportSpecMode UPDATE_OR_INSERT
Method Detail

isUpdate

public boolean isUpdate()
Returns true if this is UPDATE mode.


isInsert

public boolean isInsert()
Returns true if this is INSERT mode.


isUpdateOrInsert

public boolean isUpdateOrInsert()
Returns true if this is UPDATE_OR_INSERT mode.


format

public String format()
Returns a persistent identifier of this definition mode.

The persistent identifier can be parsed back by the method parse(String).

See Also:
parse(String)

parse

public static ImportSpecMode parse(String aFlag)
Returns the definition mode that corresponds to the string specified.

The string specified must have been generated by the method format().

Throws:
IllegalArgumentException - if string specified is incorrect.
See Also:
format()

getLabel

public String getLabel()
Returns a human-readable label for this definition mode.


toString

public String toString()


(report a bug)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.