|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.dml.data.Element
org.quattor.pan.dml.data.PersistentElement
org.quattor.pan.dml.data.Resource
org.quattor.pan.dml.data.HashResource
org.quattor.pan.dml.data.ProtectedHashResource
public class ProtectedHashResource
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.quattor.pan.dml.data.Resource |
|---|
Resource.Entry, Resource.Iterator |
| Constructor Summary | |
|---|---|
ProtectedHashResource(HashResource baseHash)
|
|
| Method Summary | |
|---|---|
void |
checkRange(Range range)
Determine if the element satisfies the given range constraint. |
Element |
duplicate()
This method does a "clone" of the given Element. |
boolean |
equals(java.lang.Object o)
Require that all Elements implement an equals method. |
Element |
get(Term key)
Retrieve the Element associated with the given Term (either an index or string key). |
protected java.util.Map<java.lang.String,Element> |
getBackingMap()
Override this method to return the map from the base hash. |
int |
hashCode()
Require that all Elements implement the hashCode method. |
boolean |
isProtected()
This method indicates if the given Element is protected. |
Resource.Iterator |
iterator()
Get an iterator which allows to run over the resources in the Resource. |
java.util.Set<Term> |
keySet()
|
java.lang.String |
locateUndefinedElement()
Determine if the element contains any undefined (transient) elements. |
Element |
protect()
Return a protected version of this Element. |
Element |
put(Term key,
Element newValue)
Define the mapping between the given Term and given Element. |
void |
rput(Term[] terms,
int index,
Element value)
Add the given child to this resource, creating intermediate resources as necessary. |
int |
size()
Get the number of elements in this Resource. |
java.lang.String |
toString()
Require that all Elements implement a reasonable toString method. |
Element |
writableCopy()
This method returns a writable copy of this Element. |
| Methods inherited from class org.quattor.pan.dml.data.HashResource |
|---|
checkValidReplacement, getTypeAsString |
| Methods inherited from class org.quattor.pan.dml.data.Resource |
|---|
rget, rgetList |
| Methods inherited from class org.quattor.pan.dml.data.Element |
|---|
checkInvalidSelfContext, checkRestrictedContext, defined, execute, exists, isBoolean, isDouble, isList, isLong, isNlist, isPersistent, isProperty, isResource, isString, isTransient |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProtectedHashResource(HashResource baseHash)
| Method Detail |
|---|
public Element duplicate()
Element
duplicate in class HashResource
public Element get(Term key)
throws InvalidTermException
Resource
get in class HashResourcekey - Term which acts as the key for the desired Element
InvalidTermException - thrown if the term is not of the appropriate type for the
resource; the message should contain the string
representation of the term
public Element put(Term key,
Element newValue)
throws InvalidTermException
Resource
put in class HashResourcekey - Term which acts as the key for the desired ElementnewValue - Element to associate with the given Term
InvalidTermException - thrown if the term is not of the appropriate type for the
resource; the message should contain the string
representation of the termpublic int size()
Resource
size in class HashResourcepublic java.util.Set<Term> keySet()
keySet in class HashResourcepublic java.lang.String locateUndefinedElement()
Element
locateUndefinedElement in class HashResource
public void checkRange(Range range)
throws ValidationException
Element
checkRange in class HashResourcerange - Range to check Element against
ValidationException - if the element cannot be compared to a range or if the
element doesn't meet the range requirementpublic Element protect()
Element
protect in class HashResourcepublic int hashCode()
Element
hashCode in class HashResourcepublic boolean equals(java.lang.Object o)
Element
equals in class HashResourceprotected java.util.Map<java.lang.String,Element> getBackingMap()
getBackingMap in class HashResourcepublic java.lang.String toString()
Element
toString in class HashResourcepublic Resource.Iterator iterator()
Resource
iterator in interface java.lang.Iterable<Resource.Entry>iterator in class HashResourcepublic boolean isProtected()
Element
isProtected in class Element
public void rput(Term[] terms,
int index,
Element value)
throws InvalidTermException
Element
rput in class ResourceInvalidTermException - thrown if an trying to dereference a list with a key or a
hash with an indexpublic Element writableCopy()
Element
writableCopy in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||