All Packages Class Hierarchy This Package Previous Next Index
Class org.xmlmiddleware.xmldbms.maps.PropertyMapBase
java.lang.Object
|
+----org.xmlmiddleware.xmldbms.maps.MapBase
|
+----org.xmlmiddleware.xmldbms.maps.PropertyMapBase
- public class PropertyMapBase
- extends MapBase
Base class for PropertyMap and ColumnMap;
not for general use.
PropertyMapBase provides accessors and mutators for XML construct name
and type and for order information. It is the base class for PropertyMap
and ColumnMap.
PropertyMapBase is never used directly. It is only used through
PropertyMap and ColumnMap.
- Version:
- 2.0
- Author:
- Ronald Bourret, 2001
- See Also:
- PropertyMap, ColumnMap, PropertyTableMap
-
ATTRIBUTE
- Mapping between a column and an attribute.
-
ELEMENTTYPE
- Mapping between a column and an element type.
-
PCDATA
- Mapping between a column and PCDATA.
-
UNKNOWN
- Unknown mapping.
-
containsXML()
- Does the column contain XML?
Applies only to element types.
-
getColumn()
- Get the column to which the property is mapped.
-
getOrderInfo()
- Get the information used to order the element or PCDATA in its parent.
-
getTokenListOrderInfo()
- Get the information used to order a token list property.
-
getType()
- Get the type of the XML construct being mapped: ELEMENTTYPE, ATTRIBUTE, or PCDATA.
-
getXMLName()
- Get the name of the element type or attribute being mapped.
-
isTokenList()
- Is the value of an element type, attribute, or PCDATA a token list?
This is used to support token-list-valued attributes (as declared in DTDs)
and token-list-valued element types and attributes (as declared in XML Schemas
with the list data type).
-
setContainsXML(boolean)
- Set whether the column contains XML.
-
setIsTokenList(boolean)
- Sets whether the value of an element type, attribute, or PCDATA is a token list.
-
setOrderInfo(OrderInfo)
- Set the information used to order the element or PCDATA in its parent.
-
setTokenListOrderInfo(OrderInfo)
- Set the information used to order a token list property.
UNKNOWN
public static final int UNKNOWN
- Unknown mapping.
ELEMENTTYPE
public static final int ELEMENTTYPE
- Mapping between a column and an element type.
ATTRIBUTE
public static final int ATTRIBUTE
- Mapping between a column and an attribute.
PCDATA
public static final int PCDATA
- Mapping between a column and PCDATA.
getXMLName
public final XMLName getXMLName()
- Get the name of the element type or attribute being mapped.
- Returns:
- The element type or attribute name. Null if PCDATA is mapped.
getType
public final int getType()
- Get the type of the XML construct being mapped: ELEMENTTYPE, ATTRIBUTE, or PCDATA.
- Returns:
- The type.
getColumn
public final Column getColumn()
- Get the column to which the property is mapped.
- Returns:
- The column.
containsXML
public final boolean containsXML()
- Does the column contain XML?
Applies only to element types. This always returns false for
attributes and PCDATA.
- Returns:
- Whether the column contains XML.
setContainsXML
public void setContainsXML(boolean containsXML)
- Set whether the column contains XML.
This method can only be called for element types.
- Parameters:
- containsXML - Whether the column contains XML.
getOrderInfo
public final OrderInfo getOrderInfo()
- Get the information used to order the element or PCDATA in its parent.
Applies only to element types and PCDATA. The result of calling
this method for attributes is undefined.
- Returns:
- The order information. Null if the property is not ordered.
setOrderInfo
public void setOrderInfo(OrderInfo orderInfo)
- Set the information used to order the element or PCDATA in its parent.
Applies only to element types and PCDATA.
- Parameters:
- orderInfo - The order information. Null if the property is not ordered.
getTokenListOrderInfo
public final OrderInfo getTokenListOrderInfo()
- Get the information used to order a token list property.
Applies only when isTokenList() returns true.
- Returns:
- The order information. Null if the values are not ordered.
setTokenListOrderInfo
public void setTokenListOrderInfo(OrderInfo tokenListOrderInfo)
- Set the information used to order a token list property.
This method may be called only when isTokenList() returns true.
- Parameters:
- tokenListOrderInfo - The order information. Null if the property is not ordered.
isTokenList
public final boolean isTokenList()
- Is the value of an element type, attribute, or PCDATA a token list?
This is used to support token-list-valued attributes (as declared in DTDs)
and token-list-valued element types and attributes (as declared in XML Schemas
with the list data type).
- Returns:
- Whether the value of an element type, attribute, or PCDATA is a token list.
setIsTokenList
public void setIsTokenList(boolean isTokenList)
- Sets whether the value of an element type, attribute, or PCDATA is a token list.
- Parameters:
- isTokenList - Whether the value of an element type, attribute, or PCDATA
is a token list
All Packages Class Hierarchy This Package Previous Next Index