com.metamatrix.query.mapping.xml
Class MappingNodeConstants

java.lang.Object
  extended by com.metamatrix.query.mapping.xml.MappingNodeConstants

public final class MappingNodeConstants
extends java.lang.Object

Constants, property names, and property default values for a MappingNode.


Nested Class Summary
static class MappingNodeConstants.Defaults
          Default property values for node properties
static class MappingNodeConstants.Properties
          Property names for type-specific node properties.
static class MappingNodeConstants.Tags
          These are the String values to be used for XML document tags.
 
Field Summary
static java.lang.String ALL
          Constant defining a target node type of "All".
static java.lang.String ATTRIBUTE
          Constant defining a target node type of "attribute".
static java.lang.Integer CARDINALITY_UNBOUNDED
          The value used to indicate an unbounded maximum cardinality
static java.lang.String CARDINALITY_UNBOUNDED_STRING
           
static java.lang.String CHOICE
          Constant defining a target node type of "choice".
static java.lang.String COMMENT
          Constant defining a target node type of "comment".
static java.lang.String CRITERIA
          Constant defining a target node type of "Criteria".
static java.lang.String DEFAULT_NAMESPACE_PREFIX
          This constant is merely used as a placeholder in the declaration of a default namespace in an XML doc instance.
static java.lang.String ELEMENT
          Constant defining a target node type of "element".
static java.lang.String INSTANCES_NAMESPACE
          The XML Schema namespace for instances - needed to make use of the "nil" attribute defined in that namespace, for nillable nodes
static java.lang.String INSTANCES_NAMESPACE_PREFIX
          Prefix of the XML Schema namespace for instances - needed to make use of the "nil" attribute defined in that namespace, for nillable nodes
static java.lang.String NAMESPACE_DECLARATION_ATTRIBUTE_NAMESPACE
           
static Namespace NO_NAMESPACE
          Defines a default namespace holder for the nodes with out any namespace declarations.
static java.lang.String NO_TYPE
          Default built-in type = no type info, which is an empty string
static java.lang.String NORMALIZE_TEXT_COLLAPSE
           
static java.lang.String NORMALIZE_TEXT_PRESERVE
          PRESERVE -No normalization is done, the value is not changed.
static java.lang.String NORMALIZE_TEXT_REPLACE
           
static java.lang.String PATH_DELIM
          Schema node path delimeter.
static int SEARCH_DOWN
          Indicates a search of a mapping document should be downward, DEPTH FIRST.
static int SEARCH_DOWN_BREADTH_FIRST
          Indicates a search of a mapping document should be downward, BREADTH FIRST.
static int SEARCH_UP
          Indicates a search of a mapping document should be upward.
static java.lang.String SEQUENCE
          Constant defining a target node type of "sequence".
static java.lang.String SOURCE
          Constant defining a target node type of "source".
 
Method Summary
static java.lang.Integer getPropertyInteger(java.lang.String property)
          Convert a property String into one of the Integer property keys defined in MappingNodeConstants.Properties
static java.lang.String getPropertyString(java.lang.Integer property)
          Convert a property Integer into a String (suitable for an XML tag).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCH_UP

public static final int SEARCH_UP
Indicates a search of a mapping document should be upward. See MappingNode.findFirstNodeWithProperty(java.lang.Integer, java.lang.Object, com.metamatrix.query.mapping.xml.MappingNode, int)

See Also:
Constant Field Values

SEARCH_DOWN

public static final int SEARCH_DOWN
Indicates a search of a mapping document should be downward, DEPTH FIRST. See MappingNode.findFirstNodeWithProperty(java.lang.Integer, java.lang.Object, com.metamatrix.query.mapping.xml.MappingNode, int)

See Also:
Constant Field Values

SEARCH_DOWN_BREADTH_FIRST

public static final int SEARCH_DOWN_BREADTH_FIRST
Indicates a search of a mapping document should be downward, BREADTH FIRST. See MappingNode.findFirstNodeWithProperty(java.lang.Integer, java.lang.Object, com.metamatrix.query.mapping.xml.MappingNode, int)

See Also:
Constant Field Values

PATH_DELIM

public static final java.lang.String PATH_DELIM
Schema node path delimeter.

See Also:
Constant Field Values

CARDINALITY_UNBOUNDED

public static final java.lang.Integer CARDINALITY_UNBOUNDED
The value used to indicate an unbounded maximum cardinality


CARDINALITY_UNBOUNDED_STRING

public static final java.lang.String CARDINALITY_UNBOUNDED_STRING
See Also:
Constant Field Values

ATTRIBUTE

public static final java.lang.String ATTRIBUTE
Constant defining a target node type of "attribute".

See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
Constant defining a target node type of "element".

See Also:
Constant Field Values

COMMENT

public static final java.lang.String COMMENT
Constant defining a target node type of "comment".

See Also:
Constant Field Values

SEQUENCE

public static final java.lang.String SEQUENCE
Constant defining a target node type of "sequence".

See Also:
Constant Field Values

CHOICE

public static final java.lang.String CHOICE
Constant defining a target node type of "choice".

See Also:
Constant Field Values

ALL

public static final java.lang.String ALL
Constant defining a target node type of "All".

See Also:
Constant Field Values

CRITERIA

public static final java.lang.String CRITERIA
Constant defining a target node type of "Criteria".

See Also:
Constant Field Values

SOURCE

public static final java.lang.String SOURCE
Constant defining a target node type of "source".

See Also:
Constant Field Values

NO_NAMESPACE

public static final Namespace NO_NAMESPACE
Defines a default namespace holder for the nodes with out any namespace declarations.


DEFAULT_NAMESPACE_PREFIX

public static final java.lang.String DEFAULT_NAMESPACE_PREFIX
This constant is merely used as a placeholder in the declaration of a default namespace in an XML doc instance. A default namespace has no prefix associated with it, so the String used here is a forbidden XML character that could never be used as a real namespace prefix.

See Also:
Constant Field Values

INSTANCES_NAMESPACE_PREFIX

public static final java.lang.String INSTANCES_NAMESPACE_PREFIX
Prefix of the XML Schema namespace for instances - needed to make use of the "nil" attribute defined in that namespace, for nillable nodes

See Also:
INSTANCES_NAMESPACE, Constant Field Values

INSTANCES_NAMESPACE

public static final java.lang.String INSTANCES_NAMESPACE
The XML Schema namespace for instances - needed to make use of the "nil" attribute defined in that namespace, for nillable nodes

See Also:
INSTANCES_NAMESPACE_PREFIX, Constant Field Values

NAMESPACE_DECLARATION_ATTRIBUTE_NAMESPACE

public static final java.lang.String NAMESPACE_DECLARATION_ATTRIBUTE_NAMESPACE
See Also:
Constant Field Values

NORMALIZE_TEXT_PRESERVE

public static final java.lang.String NORMALIZE_TEXT_PRESERVE
PRESERVE -No normalization is done, the value is not changed. REPLACE - All occurrences of tab, line feed and carriage return are replaced with space COLLAPSE - After the processing implied by replace, contiguous sequences of space are collapsed to a single space, and leading and trailing spaces are removed.

See Also:
Constant Field Values

NORMALIZE_TEXT_REPLACE

public static final java.lang.String NORMALIZE_TEXT_REPLACE
See Also:
Constant Field Values

NORMALIZE_TEXT_COLLAPSE

public static final java.lang.String NORMALIZE_TEXT_COLLAPSE
See Also:
Constant Field Values

NO_TYPE

public static final java.lang.String NO_TYPE
Default built-in type = no type info, which is an empty string

See Also:
Constant Field Values
Method Detail

getPropertyInteger

public static final java.lang.Integer getPropertyInteger(java.lang.String property)
Convert a property String into one of the Integer property keys defined in MappingNodeConstants.Properties

Parameters:
property - String representation of property
Returns:
one of the properties defined in the MappingNodeConstants.Properties inner class
See Also:
getPropertyString

getPropertyString

public static final java.lang.String getPropertyString(java.lang.Integer property)
Convert a property Integer into a String (suitable for an XML tag).

Parameters:
property - one of the properties defined in the MappingNodeConstants.Properties inner class
Returns:
String representation of property
See Also:
getPropertyInteger


Copyright © 2009. All Rights Reserved.