|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdc.services.spec.Cache
public class Cache
Cache of spec objects for a session. This cache can be shared between related sessions having the same package path. For example, each BrowserSession has an associated ParserSession to handle backwards compatibility cases, and the Cache is shared in this case.
Constructor Summary | |
---|---|
Cache()
|
Method Summary | |
---|---|
boolean |
contains(Node n)
Poll whether the cache contains an object. |
boolean |
contains(java.lang.String qn)
Poll whether the cache contains the named object. |
Node |
get(java.lang.String qn)
Get the cached copy of an object. |
boolean |
put(Node n)
Add an object to the cache. |
boolean |
put(java.lang.String qn,
Node n)
Add a object to the cache with a specific qualified name. |
boolean |
put(java.lang.String qn,
Node n,
boolean force)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache()
Method Detail |
---|
public boolean contains(Node n)
public boolean contains(java.lang.String qn)
public boolean put(Node n)
public boolean put(java.lang.String qn, Node n)
public boolean put(java.lang.String qn, Node n, boolean force)
public Node get(java.lang.String qn)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |