jInfer

cz.cuni.mff.ksi.jinfer.base.utils
Class IGGUtils

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.base.utils.IGGUtils

public final class IGGUtils
extends Object

Utilities and constants for IGG.


Field Summary
static Map<String,Object> ATTR_FROM_QUERY
          Metadata map containing a single piece of metadata: "Node comes from a query".
static Map<String,Object> ATTR_FROM_SCHEMA
          Metadata map containing a single piece of metadata: "Node comes from a schema".
static List<String> EMPTY_CONTEXT
          Empty, unmodifiable context.
static String FILE_ORIGIN
          Metadata representing the name of the file where this node originated from.
static String FROM_QUERY
          Metadata string meaning "Node comes from a query".
static String FROM_SCHEMA
          Metadata string meaning "Node comes from a schema".
static String IS_ID
          Metadata string meaning "Attribute is ID".
static String IS_SENTINEL
          Metadata string meaning "Node is a sentinel".
static Map<String,Object> METADATA_SENTINEL
          Metadata map containing a single piece of metadata: "Node is a sentinel".
static String REQUIRED
          Metadata string meaning "Attribute is required".
 
Method Summary
static boolean isSimpleConcatenation(Regexp<AbstractStructuralNode> r)
          Returns flag if the provided regexp is a simple concatenation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_SCHEMA

public static final String FROM_SCHEMA
Metadata string meaning "Node comes from a schema".

See Also:
Constant Field Values

FROM_QUERY

public static final String FROM_QUERY
Metadata string meaning "Node comes from a query".

See Also:
Constant Field Values

IS_SENTINEL

public static final String IS_SENTINEL
Metadata string meaning "Node is a sentinel".

See Also:
Constant Field Values

REQUIRED

public static final String REQUIRED
Metadata string meaning "Attribute is required".

See Also:
Constant Field Values

FILE_ORIGIN

public static final String FILE_ORIGIN
Metadata representing the name of the file where this node originated from.

See Also:
Constant Field Values

IS_ID

public static final String IS_ID
Metadata string meaning "Attribute is ID". See DTD reference and XSD reference for further information.

See Also:
Constant Field Values

ATTR_FROM_SCHEMA

public static final Map<String,Object> ATTR_FROM_SCHEMA
Metadata map containing a single piece of metadata: "Node comes from a schema".


ATTR_FROM_QUERY

public static final Map<String,Object> ATTR_FROM_QUERY
Metadata map containing a single piece of metadata: "Node comes from a query".


METADATA_SENTINEL

public static final Map<String,Object> METADATA_SENTINEL
Metadata map containing a single piece of metadata: "Node is a sentinel".


EMPTY_CONTEXT

public static final List<String> EMPTY_CONTEXT
Empty, unmodifiable context.

Method Detail

isSimpleConcatenation

public static boolean isSimpleConcatenation(Regexp<AbstractStructuralNode> r)
Returns flag if the provided regexp is a simple concatenation. Regexp is a simple concatenation if all these conditions hold:

Parameters:
r - Regexp to be examined.
Returns:
True if the regexp is a simple concatenation, false otherwise.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011