|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.Domain
public class Domain
Domain is the basic managed object for Ponder2 that supports hierarchies. View it like a directory or a folder in a filesystem
Constructor Summary | |
---|---|
protected |
Domain(P2Object myP2Object)
creates a new Domain managed object |
Method Summary | |
---|---|
protected void |
add(java.lang.String name,
P2ManagedObject mo)
adds a new managed object to this domain |
boolean |
contains(P2Object anObject)
returns true if anObject exists within the domain |
boolean |
contains(java.lang.String aName)
returns true if the named object exists within the domain |
P2ManagedObject |
get(java.lang.String name)
gets the P2ManagedObject of a named managed object |
protected java.lang.String[] |
names()
returns an array of the names of the objects in this domain |
protected P2Hash |
operation_asHash()
Returns a hash containing all the entries in the domain as name->object pairs |
protected P2Object |
operation_at_add(java.lang.String aName,
P2Object p2Object)
add anOid into the domain with aName. |
protected P2Object |
operation_at(P2Object source,
java.lang.String aName,
P2Block aBlock)
Answer the P2Object associated with aName. |
protected P2Object |
operation_at(java.lang.String aName)
answers the P2Object of the Managed Object at aName. |
protected P2Array |
operation_collect(P2Object source,
P2Block aBlock)
Calls aBlock with name/value pairs for each entry in the domain. |
protected void |
operation_do(P2Object source,
P2Block aBlock)
Calls aBlock with name/value pairs for each entry in the domain. |
protected P2Object |
operation_listNames()
answers an array containing the names of all the domain's entries. |
protected P2Object |
operation_listObjects()
answers an array of Managed Object names containing all the entries in the domain. |
protected P2Object |
operation_remove(java.lang.String aName)
Removes aName and its ManagedObject from the domain. |
protected P2Object |
operation_resolve(java.lang.String aPath)
Answers with the object from aPath relative to this domain |
protected P2ManagedObject |
remove(java.lang.String name)
removes a managed object from a domain |
protected void |
removeAll()
Removes all objects from the domain. |
protected boolean |
removeObject(P2Object anObject)
Removes anObject from the receiver. |
int |
size()
Answer the number of elements in the receiver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Domain(P2Object myP2Object)
Method Detail |
---|
protected void add(java.lang.String name, P2ManagedObject mo)
name
- the name of the new object to be addedmo
- the OID of the object to be addedprotected P2ManagedObject remove(java.lang.String name) throws Ponder2Exception
name
- the name of the object to be removed
Ponder2Exception
public P2ManagedObject get(java.lang.String name)
name
- the name of the object to be located
public boolean contains(java.lang.String aName)
aName
- the name of the object to be located
public boolean contains(P2Object anObject)
anObject
- the object to be located
public int size()
protected java.lang.String[] names()
protected P2Object operation_listNames()
protected P2Object operation_listObjects()
protected P2Hash operation_asHash()
protected P2Object operation_at(java.lang.String aName)
aName
- the name of the object to be returned
protected P2Object operation_at(P2Object source, java.lang.String aName, P2Block aBlock) throws Ponder2Exception
aName
- the name of the object to be returnedaBlock
- a block to be executed if aName is not found
Ponder2Exception
protected P2Object operation_at_add(java.lang.String aName, P2Object p2Object)
aName
- the name to be usedp2Object
- the object to be added
protected void operation_do(P2Object source, P2Block aBlock) throws Ponder2Exception
aBlock
- the block to be executed. It must take up to two arguments, the
first being name and the second being value
Ponder2Exception
protected P2Array operation_collect(P2Object source, P2Block aBlock) throws Ponder2Exception
aBlock
- the block to be executed
Ponder2Exception
protected P2Object operation_resolve(java.lang.String aPath) throws Ponder2Exception
aPath
- the relative path to be resolved
Ponder2Exception
protected P2Object operation_remove(java.lang.String aName) throws Ponder2Exception
aName
- the name of the object to be removed
nil
Ponder2Exception
protected boolean removeObject(P2Object anObject) throws Ponder2Exception
anObject
- the object to be removed
Ponder2Exception
protected void removeAll() throws Ponder2Exception
Ponder2Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |