All Packages Class Hierarchy This Package Previous Next Index
Class de.tudarmstadt.ito.xmldbms.ClassMap
java.lang.Object
|
+----de.tudarmstadt.ito.xmldbms.ClassMap
- public class ClassMap
- extends Object
Maps an element type as a class; not for
general use.
ClassMap contains information about an element type-as-class:
how it is mapped, what table it is mapped to, maps for attributes,
PCDATA, and child element types, etc. ClassMaps
are stored in RootClassMaps and RelatedClassMaps, which are
accessed through hash tables keyed by element type name.
-
attributeMaps
- A Hashtable containing PropertyMaps for attributes.
-
name
- Name of the class (element type).
-
pcdataMap
- The PropertyMap for the PCDATA.
-
subElementTypeMaps
- A Hashtable containing maps for child element types.
-
table
- The table to which the class is mapped.
-
type
- How the class is mapped: to a root table, to a class table,
ignored, or passed-through.
-
TYPE_IGNOREROOT
- Ignore the element type.
-
TYPE_PASSTHROUGH
- Map the element type as pass-through; not implemented yet.
-
TYPE_TOCLASSTABLE
- Map the element type to a class table.
-
TYPE_TOROOTTABLE
- Map the element type to a root table.
-
ClassMap()
- Construct a ClassMap.
-
getAttributeMap(String)
- Get a map for an attribute.
-
getElementTypeMap(String)
- Get a map for a child element.
-
getPCDATAMap()
- Get a map for PCDATA.
TYPE_TOROOTTABLE
public static final int TYPE_TOROOTTABLE
- Map the element type to a root table.
TYPE_TOCLASSTABLE
public static final int TYPE_TOCLASSTABLE
- Map the element type to a class table.
TYPE_IGNOREROOT
public static final int TYPE_IGNOREROOT
- Ignore the element type.
TYPE_PASSTHROUGH
public static final int TYPE_PASSTHROUGH
- Map the element type as pass-through; not implemented yet.
name
public NSName name
- Name of the class (element type). This name includes full namespace
information.
type
public int type
- How the class is mapped: to a root table, to a class table,
ignored, or passed-through.
table
public Table table
- The table to which the class is mapped. Null if the class is
ignored or passed through.
attributeMaps
public Hashtable attributeMaps
- A Hashtable containing PropertyMaps for attributes. The Hashtable
is keyed by the namespace-qualified attribute name. Null if no
attributes are mapped.
pcdataMap
public PropertyMap pcdataMap
- The PropertyMap for the PCDATA. Null if the PCDATA is not mapped.
subElementTypeMaps
public Hashtable subElementTypeMaps
- A Hashtable containing maps for child element types. The Hashtable
is keyed by the namespace-qualified element type name. It can
contain RelatedClassMaps (for child element types-as-classes) or
PropertyMaps (for child element types-as-properties). In the
future, it will also contain PassThroughMaps (for passed-through
child element types). Null if no child element types are mapped.
ClassMap
public ClassMap()
- Construct a ClassMap.
getPCDATAMap
public PropertyMap getPCDATAMap()
- Get a map for PCDATA.
- Returns:
- The PropertyMap for the class' PCDATA. Null if the PCDATA
is not mapped.
getElementTypeMap
public Object getElementTypeMap(String qualifiedElementName)
- Get a map for a child element.
- Parameters:
- qualifiedElementName - The namespace-qualified name of the
element.
- Returns:
- A PropertyMap (for element type-as-property children) or
RelatedClassMap (for element type-as-class children). Null if the
child element is not mapped.
getAttributeMap
public PropertyMap getAttributeMap(String qualifiedAttrName)
- Get a map for an attribute.
- Parameters:
- qualifiedAttrName - The namespace-qualified name of the
attribute.
- Returns:
- A PropertyMap for the attribute. Null if the attribute
is not mapped.
All Packages Class Hierarchy This Package Previous Next Index