Class pmr.cml.FullAddress
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.cml.FullAddress
java.lang.Object
|
+----pmr.cml.FullAddress
- public class FullAddress
- extends Object
a full address consists of the DrawableX_Node and the subaddress(es) represented
as an IntRange. At present it refers to a single tree (and an address is
checked for validity, but it principle it could link different trees).
- Author:
- (C) P. Murray-Rust, 1996
-
FullAddress(DrawableX_Node, int)
-
-
FullAddress(DrawableX_Node, IntRange)
- create from a known Node and a known subaddress (which could be a
single point for an IntRange n-n
-
FullAddress(String, SGMLTree)
- create from a String.
-
display()
- display itself; works out the Node and then tells the node to display
itself with any subaddress
-
equals(FullAddress)
-
-
getNode()
-
-
getSubAddress()
-
-
toString()
- returns string of form MOL:2-31 or MOL:3
FullAddress
public FullAddress(DrawableX_Node node,
IntRange subAddress)
- create from a known Node and a known subaddress (which could be a
single point for an IntRange n-n
FullAddress
public FullAddress(DrawableX_Node node,
int address)
FullAddress
public FullAddress(String addString,
SGMLTree tree) throws BadTecMLAddressException
- create from a String. This must be of the form nodename[:start[-end]]:
the nodename must exist in the object (referenced as NAME=nodename)
NOTE ALL EXTERNAL ADDRESSES COUNT FROM **ONE**
It checks the existence of the node in the Tree. it does not check
the value of the subaddresses (except for obvious errors). It also checks
that an object is subAddressable
- Throws: BadTecMLAddressException
- many possibilities! Non-existent or
duplicate Node in address or bad subaddress.
getNode
public DrawableX_Node getNode()
getSubAddress
public IntRange getSubAddress()
equals
public boolean equals(FullAddress fa)
display
public void display()
- display itself; works out the Node and then tells the node to display
itself with any subaddress
toString
public String toString()
- returns string of form MOL:2-31 or MOL:3
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index