com.apelon.modules.dts.editor.tql
Enum TQL.StatementType

java.lang.Object
  extended by java.lang.Enum<TQL.StatementType>
      extended by com.apelon.modules.dts.editor.tql.TQL.StatementType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TQL.StatementType>
Enclosing class:
TQL

public static enum TQL.StatementType
extends java.lang.Enum<TQL.StatementType>

Enum for TQL statement types.


Enum Constant Summary
COLLECTION
           
CONSTRAIN
           
CREATE
           
CREATE_CONCEPTS
           
CREATE_TERMS
           
DELETE
           
DELETE_ATTRS
           
DELETE_CONCEPTS
           
DELETE_TERMS
           
DELETE_TREES
           
ELSE
           
ELSEIF
           
EXPORT
           
EXPORT_CONCEPTS
           
EXPORT_NAMESPACE
           
EXPORT_SUBSET
           
FOR
           
IF
           
LOG
           
PARAMETER
           
PRINT
           
SET
           
UPDATE_ATTRS
           
WHO
           
 
Method Summary
 boolean isDelete()
          Return whether this statement type is a DELETE statement.
 boolean isExport()
          Return whether this statement type is an EXPORT statement.
 boolean isObjectEdit()
          Return whether this statement type creates or deletes DTSConcept or Term objects.
 boolean isReadonly()
          Return whether this statement type does not modify the DTS Knowledgebase.
static TQL.StatementType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TQL.StatementType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXPORT

public static final TQL.StatementType EXPORT

EXPORT_NAMESPACE

public static final TQL.StatementType EXPORT_NAMESPACE

EXPORT_CONCEPTS

public static final TQL.StatementType EXPORT_CONCEPTS

EXPORT_SUBSET

public static final TQL.StatementType EXPORT_SUBSET

DELETE_CONCEPTS

public static final TQL.StatementType DELETE_CONCEPTS

DELETE_TREES

public static final TQL.StatementType DELETE_TREES

DELETE_TERMS

public static final TQL.StatementType DELETE_TERMS

CREATE

public static final TQL.StatementType CREATE

DELETE

public static final TQL.StatementType DELETE

CREATE_CONCEPTS

public static final TQL.StatementType CREATE_CONCEPTS

CREATE_TERMS

public static final TQL.StatementType CREATE_TERMS

DELETE_ATTRS

public static final TQL.StatementType DELETE_ATTRS

SET

public static final TQL.StatementType SET

UPDATE_ATTRS

public static final TQL.StatementType UPDATE_ATTRS

COLLECTION

public static final TQL.StatementType COLLECTION

PRINT

public static final TQL.StatementType PRINT

LOG

public static final TQL.StatementType LOG

PARAMETER

public static final TQL.StatementType PARAMETER

CONSTRAIN

public static final TQL.StatementType CONSTRAIN

FOR

public static final TQL.StatementType FOR

IF

public static final TQL.StatementType IF

ELSE

public static final TQL.StatementType ELSE

ELSEIF

public static final TQL.StatementType ELSEIF

WHO

public static final TQL.StatementType WHO
Method Detail

values

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

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

valueOf

public static TQL.StatementType 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

isExport

public boolean isExport()
Return whether this statement type is an EXPORT statement.

Returns:
whether an export statement

isDelete

public boolean isDelete()
Return whether this statement type is a DELETE statement.

Returns:
whether a delete statement

isObjectEdit

public boolean isObjectEdit()
Return whether this statement type creates or deletes DTSConcept or Term objects.

Returns:
whether an object create/delete statement

isReadonly

public boolean isReadonly()
Return whether this statement type does not modify the DTS Knowledgebase.

Returns:
whether a read-only statement