com.jaxfront.core.schema.impl
Class KeyContainer

java.lang.Object
  extended by com.jaxfront.core.schema.impl.KeyContainer

public class KeyContainer
extends java.lang.Object


Field Summary
static Type[] _defaultContext
           
static KeyContextWrapper _defaultContextWrapper
           
 
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 isSelectorParent(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
Constructor Detail

KeyContainer

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

createContext

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

getSchemaKey

public SchemaKey getSchemaKey()

isSelectorParent

public static boolean isSelectorParent(SchemaNode schemaParent,
                                       Type type)

getSelectorParent

public static Type getSelectorParent(SchemaNode schemaParent,
                                     Type type)

getFirstSelectorChild

public static Type getFirstSelectorChild(SchemaNode schemaParent,
                                         Type type)

addKeyType

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

addKeyType

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

addKeyRefType

public void addKeyRefType(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

isKeyTypeRemoveable

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

removeKeyRefType

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

getKeyTypes

public java.util.List getKeyTypes()

getKeyTypeForValue

public Type getKeyTypeForValue(java.lang.String value)

getKeyTypesForValue

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

isKeyRemovable

public boolean isKeyRemovable(Type deletionStart,
                              SimpleType type)

keyValueExist

public boolean keyValueExist(java.lang.String value)

areAllKeysValid

public boolean areAllKeysValid()
                        throws KeyRefException
Throws:
KeyRefException

getReleased

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

areAllReferencesValid

public boolean areAllReferencesValid()
                              throws KeyRefException
Throws:
KeyRefException

createUniqueID

public java.lang.String createUniqueID()

getKeyName

public java.lang.String getKeyName()

getAllReferences

public java.util.List getAllReferences()

getAllReferencesFor

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

getInfo

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

release

public void release()

deepCloneForTest

public KeyContainer deepCloneForTest()

isEqual

public java.lang.String isEqual(KeyContainer against)

containsAll

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

setContext

public void setContext(KeyContextWrapper context)

getHolderList

public ListType getHolderList()

getPossibleKeyType

public Type getPossibleKeyType()

getContext

public KeyContextWrapper getContext()