All Packages Class Hierarchy This Package Previous Next Index
Class key.Container
java.lang.Object
|
+----key.Atom
|
+----key.Container
- public class Container
- extends Atom
- implements Parent, Referrer
-
addToAction
- is allowed to add objects to this container
-
assumedContents
-
-
concealInAction
- can conceal atoms in this container
-
constrainedType
-
-
countContents
-
-
limitProperty
-
-
reference
-
-
referenceProperty
-
-
removeFromAction
- is allowed to remove objects from this container
-
revealInAction
- can reveal atoms in this container
-
sortAction
- can sort atoms in this container
-
staticActions
-
-
Container()
-
-
Container(boolean)
-
-
add(Atom)
- Adds the supplied atom and sets its parent to this
-
add(Tag)
- Doesn't do a lot of the checking a 'traditional' add does -
container limits, constrained types - none of these are
checked.
-
addInternal(Atom)
- Internal routine so overloading add()'s don't get confused
-
addTopLevel(Container)
- Adds all the symbols in this
container to the provided Container
This container retains a reference to
its elements, but full ownership (the
elements parents) is given to the new
container.
-
alias(Atom)
-
-
argument(String)
- The argument to a container is the class to constrain
contained objects to
-
contains(Atom)
-
-
containsAction(Action)
- Returns true if the action is supported by
this class.
-
count()
-
-
delete(Atom)
-
-
dispose()
- This is a method that should be called only once.
-
elements()
- This function returns Tags?
-
evalReadOnlyProperty(ReadOnlyProperty)
- override to return the correct value for the supplied property
make sure you call super.evalReadOnlyProperty if you don't
understand it before returning null
-
finalize()
-
-
fullResolve()
- Ensures that all the sub-objects of this component have been resolved
as well.
-
getAction(String)
- Returns the action corresponding to the
supplied name.
-
getActions()
- Returns a list of the actions supported by
this class.
-
getConstraint()
-
-
getElement(String)
-
-
getElementAt(int)
-
-
getExactElement(String)
-
-
getParentId()
- see Parent.java
-
getSymbol(String)
- Full search for the symbol of id s.
-
getSymbol(StringTokenizer, boolean)
- Returns the symbol specified by the tokenizer.
This function requires that it is passed a stringtokenizer
containing elements like:
reference
protected boolean reference
referenceProperty
protected ReadOnlyProperty referenceProperty
countContents
protected ReadOnlyProperty countContents
limitProperty
protected DataProperty limitProperty
constrainedType
protected Type constrainedType
assumedContents
protected boolean assumedContents
staticActions
protected static StringKeyCollection staticActions
addToAction
public static Action addToAction
- is allowed to add objects to this container
removeFromAction
public static Action removeFromAction
- is allowed to remove objects from this container
concealInAction
public static Action concealInAction
- can conceal atoms in this container
revealInAction
public static Action revealInAction
- can reveal atoms in this container
sortAction
public static Action sortAction
- can sort atoms in this container
Container
public Container()
Container
public Container(boolean ref)
partialLoad
public void partialLoad()
- Overrides:
- partialLoad in class Atom
argument
public void argument(String args) throws IllegalArgumentException
- The argument to a container is the class to constrain
contained objects to
- Overrides:
- argument in class Atom
getConstraint
public Type getConstraint()
setConstraint
protected void setConstraint(Type c)
isReference
public final boolean isReference()
add
protected void add(Tag t) throws BadKeyException, NonUniqueKeyException
- Doesn't do a lot of the checking a 'traditional' add does -
container limits, constrained types - none of these are
checked. Also, recursive joins (more than one) aren't
supported here. If thats the little tidbit of information
you're looking for, then I bet you had to search ;p~
addInternal
protected void addInternal(Atom added) throws BadKeyException, NonUniqueKeyException
- Internal routine so overloading add()'s don't get confused
- Parameters:
- full - true if you want a full link, if false, only partial link
add
public void add(Atom added) throws BadKeyException, NonUniqueKeyException
- Adds the supplied atom and sets its parent to this
alias
public void alias(Atom toAlias)
unalias
public void unalias(Atom toNormal)
rekey
public void rekey(Atom toRekey,
AliasListKey newAlk)
- Used primarily in the 'Many' command.
sort
public final void sort()
remove
public void remove(Atom removed) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
- removes the atom. if this is its parent container, specifies that the
atom should be disposed of (deleted)
removeInternal
protected void removeInternal(Atom removed) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
noSideEffectRemove
protected void noSideEffectRemove(Atom removed) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
swapout
public void swapout(Atom a)
delete
public void delete(Atom a)
removeByNumber
public void removeByNumber(int c) throws NonUniqueKeyException, BadKeyException
getElementAt
public final Symbol getElementAt(int n)
limit
public void limit(int amount)
getTrieFor
public final Object getTrieFor(String m)
addTopLevel
public void addTopLevel(Container addTo)
- Adds all the symbols in this
container to the provided Container
This container retains a reference to
its elements, but full ownership (the
elements parents) is given to the new
container. (ie, the parents of all
elements in this container are passed
to the parent container)
elements
public final Enumeration elements()
- This function returns Tags?
tagElements
public final Enumeration tagElements()
swapout
public void swapout()
- Similar to dispose(), the swapout() method prepares a
Atom to be swapped out non-destructively
You should probably sync() before doing this...
- Overrides:
- swapout in class Atom
dispose
public void dispose()
- This is a method that should be called only once.
- Overrides:
- dispose in class Atom
loadFrom
public void loadFrom(DataInput from) throws IOException
- Overrides:
- loadFrom in class Atom
resolve
public void resolve()
- This completely overrides super.resolve(), which is called
from fullResolve() when that happens.
- Overrides:
- resolve in class Atom
fullResolve
public void fullResolve()
- Ensures that all the sub-objects of this component have been resolved
as well.
- Overrides:
- fullResolve in class Atom
readContents
protected void readContents(DataInput from) throws IOException
writeTo
public void writeTo(DataOutput to) throws IOException
- Overrides:
- writeTo in class Atom
writeContents
protected void writeContents(DataOutput to) throws IOException
count
public final int count()
getSymbol
public Object getSymbol(String s)
- Full search for the symbol of id s.
- Overrides:
- getSymbol in class Atom
evalReadOnlyProperty
public Object evalReadOnlyProperty(ReadOnlyProperty p)
- override to return the correct value for the supplied property
make sure you call super.evalReadOnlyProperty if you don't
understand it before returning null
- Overrides:
- evalReadOnlyProperty in class Atom
getSymbol
protected Object getSymbol(StringTokenizer st,
boolean resolveTags)
- Returns the symbol specified by the tokenizer.
This function requires that it is passed a stringtokenizer
containing elements like:
if the tokenizer doesn't start with a . it is assumed
(but only one)
- Returns:
- atom, a property, or null, or a Trie
if a Trie is returned, it will contain
tags, not the actual atoms
- Overrides:
- getSymbol in class Atom
getTagElement
public final Object getTagElement(String s)
getElement
public final Object getElement(String s)
getExactElement
public final Object getExactElement(String s)
getParentId
public String getParentId()
- see Parent.java
noLongerReferencing
public void noLongerReferencing(Atom a)
- see Parent.java
contains
public final boolean contains(Atom a)
getActions
public Enumeration getActions()
- Returns a list of the actions supported by
this class.
- Overrides:
- getActions in class Atom
containsAction
public boolean containsAction(Action a)
- Returns true if the action is supported by
this class.
- Overrides:
- containsAction in class Atom
getAction
public Action getAction(String name)
- Returns the action corresponding to the
supplied name. This routine will need to
be overriden by sub-classes using actions.
- Overrides:
- getAction in class Atom
getTotalContainers
public static int getTotalContainers()
finalize
protected void finalize() throws Throwable
- Overrides:
- finalize in class Atom
All Packages Class Hierarchy This Package Previous Next Index