|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.property.PropertyStackService
PropertyStackService
class implements data structures to store properties
and provides service to PropertyManager
.
PropertyManager
Field Summary | |
private java.util.Stack[] |
propertyStackList
Property Stack List |
private java.util.Hashtable |
propertyStackMap
Property Stack Hash table, provides efficient indexing of stacks |
Constructor Summary | |
PropertyStackService()
Constructs a PropertyStackService object, which provides
stack operations for Property . |
Method Summary | |
private java.util.Stack |
getStack(java.lang.String propertyName)
Returns the index of Property given its key, that is to say its name. |
void |
initStackMap()
Initialize the hash table. |
Property |
peek(java.lang.String propertyName)
Gets and returns the top element ( Property ) of the stack (without removing it).
|
java.util.Enumeration |
peekAll(java.lang.String propertyName)
Returns all elements of a given stack |
void |
pop()
Pops all active Property ies from their stacks, except
default ones, which are the last elements in stacks.Does not
deactivates default Property . |
void |
pop(java.lang.String propertyName)
Pops the corresponding active Property from its stack. |
void |
popToLast()
Pop all elements from their stack until the last elements, which are the default properties. |
void |
popToLast(java.lang.String propertyName)
Pops all elements from given property stack until the last elements, which are the default properties. |
void |
push(Property property)
Pushes a Property to its stack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Stack[] propertyStackList
private java.util.Hashtable propertyStackMap
Constructor Detail |
public PropertyStackService()
PropertyStackService
object, which provides
stack operations for Property
.
Method Detail |
public void initStackMap()
private java.util.Stack getStack(java.lang.String propertyName)
Property
given its key, that is to say its name.
propertyName
- name of a Property
public void push(Property property)
Property
to its stack.
property
- a Property
public void pop(java.lang.String propertyName)
Property
from its stack. Does not
deactivates default Property
.
propertyName
- name of a Property
public void pop()
Property
ies from their stacks, except
default ones, which are the last elements in stacks.Does not
deactivates default Property
.
public void popToLast(java.lang.String propertyName)
propertyName
- name of a Property
public void popToLast()
public Property peek(java.lang.String propertyName)
Property
) of the stack (without removing it).
If there is no Property
, it returns null.
propertyName
- name of a Property
Property
public java.util.Enumeration peekAll(java.lang.String propertyName)
propertyName
- name of a Property
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |