com.jaxfront.core.schema
Class SchemaKey

java.lang.Object
  extended by com.jaxfront.core.schema.SchemaKey
Direct Known Subclasses:
SchemaKeyRef

public class SchemaKey
extends java.lang.Object

Represents an XML Schema key definition. A schema key maybe refered by an SchemaKeyRef.

Version:
1.60
See Also:
SchemaKeyRef

Constructor Summary
SchemaKey(SchemaNode schemaElement, java.lang.String name, java.lang.String selectorXPath, java.lang.String[] fields)
          Constructor to create a SchemaKey.
 
Method Summary
 void addSelector(SchemaNode kfNode)
           
 java.lang.String[] getFields()
          Returns all referenced field names.
 java.lang.String getName()
          Returns the name of this key.
 java.lang.String[] getNormalizedSelectorXPath()
          Returns "normalized selector xpath.
 SchemaNode getSchemaElement()
          Returns the holding schema element.
 SchemaNode[] getSelectors()
           
 java.lang.String getSelectorXPath()
          Returns the selector xpath.
 boolean isDefinedOnList()
           
 void setDefinedOnList(boolean onList)
           
 void setNormalizedSelectorXPath(java.lang.String[] xpaths)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaKey

public SchemaKey(SchemaNode schemaElement,
                 java.lang.String name,
                 java.lang.String selectorXPath,
                 java.lang.String[] fields)
Constructor to create a SchemaKey.

Parameters:
schemaElement - holding schema element
name - name of the key reference
selectorXPath - xpath to point to
fields - field names to reference
Method Detail

getFields

public java.lang.String[] getFields()
Returns all referenced field names.


getSchemaElement

public SchemaNode getSchemaElement()
Returns the holding schema element.


getSelectorXPath

public java.lang.String getSelectorXPath()
Returns the selector xpath.


getNormalizedSelectorXPath

public java.lang.String[] getNormalizedSelectorXPath()
Returns "normalized selector xpath. every occurence of // is replaced by /


setNormalizedSelectorXPath

public void setNormalizedSelectorXPath(java.lang.String[] xpaths)

getName

public java.lang.String getName()
Returns the name of this key.

Returns:

isDefinedOnList

public boolean isDefinedOnList()

setDefinedOnList

public void setDefinedOnList(boolean onList)

addSelector

public void addSelector(SchemaNode kfNode)

getSelectors

public SchemaNode[] getSelectors()