| org.griphyn.vdl.classes.VDL org.griphyn.vdl.classes.Value
All known Subclasses: org.griphyn.vdl.classes.List, org.griphyn.vdl.classes.Scalar,
Value | abstract public class Value extends VDL implements Cloneable,Serializable(Code) | | This class is the base class for
Scalar and
List child classes.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Field Summary | |
final public static int | LIST Denotes a list component. | final public static int | SCALAR Denotes a scalar component, which is always a leaf. |
Constructor Summary | |
public | Value() Default ctor. |
Method Summary | |
abstract public Object | clone() Creates and returns a copy of this object. | abstract public boolean | containsLFN(String filename, int linkage) Determines if the Value contains an LFN of the specified linkage.
The logic uses short-circuit evaluation, thus finding things is
faster than not finding things. | abstract public java.util.List | getAllLFN(int linkage) Determines all LFN instances of a given scalar that match the
specified linkage. | abstract public int | getContainerType() This method determines which container is being used in the abstract
base class in order to avoid typeof constructs. | abstract public java.util.List | getLFNList(int linkage) Determines all LFN instances of a given scalar that match the
specified linkage. | public String | getName() Accessor method. | abstract public String | getSymbolicType() This method determines which container is being used in the abstract
base class in order to kludgy statements when printing debug info. | public static boolean | isInRange(int x) Predicate function to determine, if a container type is within
the legal range of values. | public void | setName(String name) Accessor method. |
Value | public Value()(Code) | | Default ctor.
|
clone | abstract public Object clone()(Code) | | Creates and returns a copy of this object.
a new instance. |
containsLFN | abstract public boolean containsLFN(String filename, int linkage)(Code) | | Determines if the Value contains an LFN of the specified linkage.
The logic uses short-circuit evaluation, thus finding things is
faster than not finding things. Searching a list is a potentially
expensive method.
Parameters: filename - is the name of the LFN Parameters: linkage - is the linkage to check for, -1 for any linkage type. true if the LFN is contained in the scalar, false otherwise. See Also: org.griphyn.vdl.classes.LFN See Also: See Also: Derivation.containsLFN(Stringint) |
getAllLFN | abstract public java.util.List getAllLFN(int linkage)(Code) | | Determines all LFN instances of a given scalar that match the
specified linkage. This is a higher-level method employing the
given API.
Parameters: linkage - is the linkage to check for, -1 for all filenames. a set of logical filename instances that match the linkageand were part of the scalar. The result may be an empty set, if nosuch result were to be found. See Also: LFN See Also: |
getContainerType | abstract public int getContainerType()(Code) | | This method determines which container is being used in the abstract
base class in order to avoid typeof constructs.
either the constant to designate a Scalar , ora constant to designate a List . See Also: Value.SCALAR See Also: Value.LIST |
getLFNList | abstract public java.util.List getLFNList(int linkage)(Code) | | Determines all LFN instances of a given scalar that match the
specified linkage. This is a higher-level method employing the
given API. Note that also linkage of NONE will not be found in
wildcard search mode.
Parameters: linkage - is the linkage to check for, -1 for all filenames. a set of all logical filenames that match the linkage andwere part of the scalar. The result may be an empty set, if no suchresult were to be found. For a linkage of -1, complete LFNs will bereturned, for any other linkage, just the filename will bereturned. See Also: Derivation.getLFNList(int) See Also: See Also: LFN See Also: |
getName | public String getName()(Code) | | Accessor method. Obtains the current state of the thus named attribute.
the current state of the m_name attribute. See Also: Value.setName(String) |
getSymbolicType | abstract public String getSymbolicType()(Code) | | This method determines which container is being used in the abstract
base class in order to kludgy statements when printing debug info.
the symblic identifier for the type of the Value. |
isInRange | public static boolean isInRange(int x)(Code) | | Predicate function to determine, if a container type is within
the legal range of values.
Parameters: x - is the container type true, if the type is within the legal range, orfalse, if the container type is outside legal range. See Also: Value.SCALAR See Also: Value.LIST |
setName | public void setName(String name)(Code) | | Accessor method. Sets the attribute of same name to a new value.
Parameters: name - is the new value to overwrite the current state with. See Also: Value.getName() |
|
|