com.jaxfront.core.schema.impl
Class KeyContainer

java.lang.Object
  extended by com.jaxfront.core.schema.impl.KeyContainer
Direct Known Subclasses:
KeyCompositeContainer

public class KeyContainer
extends java.lang.Object


Field Summary
static Type[] _defaultContext
           
static KeyContextWrapper _defaultContextWrapper
           
static KeyContextWrapper _globalContextWrapper
           
static Type[] _wrongContext
           
 
Constructor Summary
KeyContainer(java.lang.String keyName, SchemaKey schemaKey, Document document)
           
 
Method Summary
 void addKeyRefType(java.lang.String refName, SimpleType type)
           
 void addKeyType(SimpleType type)
           
 void addKeyType(SimpleType type, boolean createID)
           
 boolean areAllKeysValid()
           
 boolean areAllReferencesValid()
           
static java.lang.String containsAll(java.lang.String name, java.util.Hashtable source, java.util.Hashtable destination)
           
static Type[] createContext(Type startType, SchemaNode schemaElement)
           
 java.lang.String createUniqueID()
           
 KeyContainer deepCloneForTest()
           
 java.util.List getAllReferences()
           
 java.util.Vector getAllReferencesFor(java.lang.String value)
           
 KeyContextWrapper getContext()
           
static Type getFirstSelectorChild(SchemaNode schemaParent, Type type)
           
 ListType getHolderList()
           
 void getInfo(java.lang.StringBuffer info, boolean details)
           
 java.lang.String getKeyName()
           
 Type getKeyTypeForValue(java.lang.String value)
           
 java.util.List getKeyTypes()
           
 java.util.List getKeyTypesForValue(java.lang.String value)
           
 Type getPossibleKeyType()
           
 java.util.List getReleased()
           
 SchemaKey getSchemaKey()
           
static Type getSelectorParent(SchemaNode schemaParent, Type type)
           
 java.lang.String isEqual(KeyContainer against)
           
 boolean isKeyRemovable(Type deletionStart, SimpleType type)
           
 boolean isKeyTypeRemoveable(Type deletionStart, SimpleType type)
           
static boolean isSelectorKeyParent(SchemaKey sKey, SchemaNode schemaParent, Type type)
           
static boolean isSelectorParent(SchemaNode schemaParent, Type type)
           
static boolean isSelectorParentByXPath(SchemaKey sKey, Type type)
           
static boolean isSelectorRefParent(SchemaKey sKey, SchemaNode schemaParent, Type type)
           
 boolean keyValueExist(java.lang.String value)
           
 void release()
           
 void removeKeyRefType(java.lang.String refName, SimpleType type)
           
 void removeKeyType(SimpleType type)
           
 void removeKeyType(SimpleType type, boolean force)
           
 void removeKeyType(Type deletionStart, SimpleType type, boolean force)
           
 void setContext(KeyContextWrapper context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_defaultContext

public static final Type[] _defaultContext

_defaultContextWrapper

public static final KeyContextWrapper _defaultContextWrapper

_globalContextWrapper

public static final KeyContextWrapper _globalContextWrapper

_wrongContext

public static final Type[] _wrongContext
Constructor Detail

KeyContainer

public KeyContainer(java.lang.String keyName,
                    SchemaKey schemaKey,
                    Document document)
Method Detail

addKeyRefType

public void addKeyRefType(java.lang.String refName,
                          SimpleType type)

addKeyType

public void addKeyType(SimpleType type)
                throws KeyRefException
Throws:
KeyRefException

addKeyType

public void addKeyType(SimpleType type,
                       boolean createID)
                throws KeyRefException
Throws:
KeyRefException

areAllKeysValid

public boolean areAllKeysValid()
                        throws KeyRefException
Throws:
KeyRefException

areAllReferencesValid

public boolean areAllReferencesValid()
                              throws KeyRefException
Throws:
KeyRefException

containsAll

public static java.lang.String containsAll(java.lang.String name,
                                           java.util.Hashtable source,
                                           java.util.Hashtable destination)

createContext

public static Type[] createContext(Type startType,
                                   SchemaNode schemaElement)

createUniqueID

public java.lang.String createUniqueID()

deepCloneForTest

public KeyContainer deepCloneForTest()

getAllReferences

public java.util.List getAllReferences()

getAllReferencesFor

public java.util.Vector getAllReferencesFor(java.lang.String value)

getContext

public KeyContextWrapper getContext()

getFirstSelectorChild

public static Type getFirstSelectorChild(SchemaNode schemaParent,
                                         Type type)

getHolderList

public ListType getHolderList()

getInfo

public void getInfo(java.lang.StringBuffer info,
                    boolean details)

getKeyName

public java.lang.String getKeyName()

getKeyTypeForValue

public Type getKeyTypeForValue(java.lang.String value)

getKeyTypes

public java.util.List getKeyTypes()

getKeyTypesForValue

public java.util.List getKeyTypesForValue(java.lang.String value)

getPossibleKeyType

public Type getPossibleKeyType()

getReleased

public java.util.List getReleased()
                           throws KeyRefException
Throws:
KeyRefException

getSchemaKey

public SchemaKey getSchemaKey()

getSelectorParent

public static Type getSelectorParent(SchemaNode schemaParent,
                                     Type type)

isEqual

public java.lang.String isEqual(KeyContainer against)

isKeyRemovable

public boolean isKeyRemovable(Type deletionStart,
                              SimpleType type)

isKeyTypeRemoveable

public boolean isKeyTypeRemoveable(Type deletionStart,
                                   SimpleType type)
                            throws KeyRefException
Throws:
KeyRefException

isSelectorKeyParent

public static boolean isSelectorKeyParent(SchemaKey sKey,
                                          SchemaNode schemaParent,
                                          Type type)

isSelectorParent

public static boolean isSelectorParent(SchemaNode schemaParent,
                                       Type type)

isSelectorParentByXPath

public static boolean isSelectorParentByXPath(SchemaKey sKey,
                                              Type type)

isSelectorRefParent

public static boolean isSelectorRefParent(SchemaKey sKey,
                                          SchemaNode schemaParent,
                                          Type type)

keyValueExist

public boolean keyValueExist(java.lang.String value)

release

public void release()

removeKeyRefType

public void removeKeyRefType(java.lang.String refName,
                             SimpleType type)

removeKeyType

public void removeKeyType(SimpleType type)
                   throws KeyRefException
Throws:
KeyRefException

removeKeyType

public void removeKeyType(SimpleType type,
                          boolean force)
                   throws KeyRefException
Throws:
KeyRefException

removeKeyType

public void removeKeyType(Type deletionStart,
                          SimpleType type,
                          boolean force)
                   throws KeyRefException
Throws:
KeyRefException

setContext

public void setContext(KeyContextWrapper context)