|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RmapInterface
Rmap methods interface.
This interface provides a description of an Rmap that provides
the minimum number of methods necessary to access generally useful
capabilities of an Rmap through other interfaces.
| Method Summary | |
|---|---|
void |
addChild(Rmap childI)
Adds a child Rmap to this RmapInterface. |
Object |
clone()
Clones this object. |
int |
compareNames(Rmap otherI)
Compares the name of this RmapInterface to the name of the
input Rmap. |
int |
compareNames(String nameI)
Compares the name of this RmapInterface to the input name. |
int |
compareTo(Rmap rmapI)
Compares the input Rmap to this one. |
Rmap |
findChild(Rmap childI)
Finds a matching child Rmap. |
Rmap |
findDescendant(String nameI,
boolean addI)
Finds a descendant Rmap by name. |
String |
getFullName()
Gets the fully qualified name of this Rmap. |
String |
getName()
Gets the name of this RmapInterface. |
Rmap |
getParent()
Gets the parent Rmap of this RmapInterface. |
void |
removeChild(Rmap childI)
Removes a child Rmap from this RmapInterface. |
void |
removeChildAt(int indexI)
Removes the child Rmap at a particular index from this
RmapInterface. |
void |
setName(String nameI)
Sets the name of this RmapInterface. |
String |
toString()
Gets a displayable string representation of this RmapInterface. |
String |
toString(boolean memberI,
String indentI)
Gets a displayable string representation of this RmapInterface. |
| Method Detail |
|---|
void addChild(Rmap childI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
Rmap to this RmapInterface.
childI - the new child Rmap.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
IllegalArgumentException - thrown if the input Rmap is already a
child of another Rmap or if the input
is null.
InterruptedException - thrown if the operation is interrupted.removeChild(com.rbnb.api.Rmap),
removeChildAt(int)Object clone()
Cloneableint compareNames(Rmap otherI)
RmapInterface to the name of the
input Rmap.
otherI - the other Rmap.
RmapInterface compares less than the
input,RmapInterface compares equal to the
input, and,RmapInterface compares greater than
the input.int compareNames(String nameI)
RmapInterface to the input name.
nameI - the name to compare to.
RmapInterface compares less than the
input,RmapInterface compares equal to the
input, and,RmapInterface compares greater than
the input.int compareTo(Rmap rmapI)
Rmap to this one.
rmapI - the Rmap to compare.
<0 if this Rmap compares less than the input,
0 if this Rmap compares equal to the input, and
>0 if this Rmap compares greater than the input.
Rmap findChild(Rmap childI)
throws AddressException,
SerializeException,
IOException,
InterruptedException
Rmap.
If there are multiple matches, the one returned is not defined.
childI - the child Rmap to match.
Rmap.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.
Rmap findDescendant(String nameI,
boolean addI)
throws AddressException,
SerializeException,
IOException,
InterruptedException
Rmap by name.
Due to the complications introduced by group membership, this method can only be used properly when there are no groups. If a group is discovered during the search, an exception is thrown.
This method can optionally create the hierarchy leading to the desired descendant.
nameI - the fully qualified descendant's name.addI - add the descendant if it doesn't exist?
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.
String getFullName()
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
Rmap.
If the
Rmap is a descendent of an Rmap with
group members, the fully qualified name is actually ambiguous. The code
fills in a special _
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.
String getName()
RmapInterface.
setName(String)Rmap getParent()
Rmap of this RmapInterface.
Rmap.
void removeChild(Rmap childI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
Rmap from this RmapInterface.
childI - the child to remove.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.addChild(com.rbnb.api.Rmap),
removeChildAt(int)
void removeChildAt(int indexI)
throws AddressException,
SerializeException,
EOFException,
IOException,
InterruptedException
Rmap at a particular index from this
RmapInterface.
indexI - the index of child to remove.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.addChild(com.rbnb.api.Rmap),
removeChild(com.rbnb.api.Rmap)
void setName(String nameI)
throws AddressException,
SerializeException,
EOFException,
InterruptedIOException,
IOException,
InterruptedException
RmapInterface.
nameI - the name of the RmapInterface.
AddressException - thrown if there is a problem with an address.
SerializeException - thrown if there is a problem with the serialization.
EOFException - thrown if the end of the input stream is reached.
InterruptedIOException - thrown if this operation is interrupted during I/O.
IOException - thrown if there is an error during I/O.
InterruptedException - thrown if the operation is interrupted.getName()String toString()
RmapInterface.
toString in class Object
String toString(boolean memberI,
String indentI)
throws InterruptedException
RmapInterface.
This method is the workhorse that actually does the work under the
the standard toString() method. It builds a representation
that shows the entire structure of the RmapInterface,
including the group members and the children.
The input parameters specify whether this RmapInterface is
a group member of its parent (or a child) and the identation string to
prepend to put this RmapInterface under its parent.
memberI - is this RmapInterface a group member?indentI - the indentation string to use.
InterruptedException - thrown if the operation is interrupted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||