public class Alias extends Attribute
Alias CalDate .profiler.cast.conductivity.calibration.dateOr a DDX:
<Alias name="CalDate" attribute=".profiler.cast.conductivity.calibration.date"/>The rules for the interpretation of these fields are as follows:
AliasDAS and DDS objects built using methods other than
DDS.parse(), DDS.parseXML,
DDS.getDAS(), or DAS.parse()
must call DDS.resolveAliases() or DAS.resolveAliases() prior to
allowing client software access to
these objects. Since an Alias essentially represents a "pointer" to some (other)
Attribute, that
Attribute object must be found. Once this has been done (by calling the correct
resolveAliases() method)
the Aliases will act transparently as references to their target Attributes.DAPNode.CloneMapALIAS, BYTE, CONTAINER, FLOAT32, FLOAT64, INT16, INT32, STRING, UINT16, UINT32, UNKNOWN, URL_nameClear, _nameEncoded, log| Constructor and Description |
|---|
Alias(java.lang.String aName,
java.lang.String attributeName)
Construct an Alias.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendValue(java.lang.String value)
Append a value to this attribute.
|
void |
appendValue(java.lang.String value,
boolean check)
Append a value to this attribute.
|
DAPNode |
cloneDAG(DAPNode.CloneMap map)
Returns a clone of this
Alias. |
void |
deleteValueAt(int index)
Remove the
i'th String from this attribute. |
java.lang.String |
getAliasedTo()
Returns the name of the attribute aliased to.
|
java.lang.String |
getAliasedToAttributeField()
Returns the name of the attribute aliased to.
|
java.lang.String |
getAliasedToAttributeFieldAsClearString()
Returns the name of the attribute aliased to.
|
AttributeTable |
getContainer()
Returns the
AttributeTable container. |
int |
getType()
Returns the attribute type constant.
|
java.lang.String |
getValueAt(int index)
Returns the attribute value at
index. |
java.util.Enumeration |
getValues()
Returns the values of this attribute as an
Enumeration
of String. |
boolean |
isAlias()
Returns true if the attribute is an alias.
|
boolean |
isContainer()
Returns true if the attribute is a container.
|
void |
print(java.io.PrintWriter os,
java.lang.String pad) |
void |
printXML(java.io.PrintWriter pw,
java.lang.String pad,
boolean constrained) |
void |
setMyAttribute(Attribute a) |
void |
setMyVariable(BaseType v) |
getContainerN, getNumVal, getTypeString, getTypeVal, getValueAtN, getValuesIterator, print, print, print, printXML, printXML, printXML, printXMLclone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setClearName, setEncodedName, setParent, setProject, setProject, setProjectedpublic Alias(java.lang.String aName,
java.lang.String attributeName)
aName - a String containing the name of the alias.attributeName - the String containing the normalized name
of the variable and attribute that this Alias references.public void setMyAttribute(Attribute a)
public void setMyVariable(BaseType v)
public int getType()
public boolean isContainer()
isContainer in class Attributepublic boolean isAlias()
public java.lang.String getAliasedTo()
public java.lang.String getAliasedToAttributeFieldAsClearString()
public java.lang.String getAliasedToAttributeField()
public AttributeTable getContainer() throws NoSuchAttributeException
AttributeTable container.getContainer in class AttributeAttributeTable container.NoSuchAttributeException - If
the instance of Attribute on which it is called is not a container.public java.util.Enumeration getValues()
throws NoSuchAttributeException
Enumeration
of String.getValues in class AttributeEnumeration of String.NoSuchAttributeExceptionpublic java.lang.String getValueAt(int index)
throws NoSuchAttributeException
index.getValueAt in class Attributeindex - the index of the attribute value to return.String at index.NoSuchAttributeExceptionpublic void appendValue(java.lang.String value)
throws AttributeBadValueException
appendValue in class Attributevalue - the attribute String to add.AttributeBadValueException - thrown if the value is not a legal
member of typepublic void appendValue(java.lang.String value,
boolean check)
throws AttributeBadValueException
appendValue in class Attributevalue - the attribute String to add.check - if true, check the validity of he attribute's value, if
false don't.AttributeBadValueException - thrown if the value is not a legal
member of typepublic void deleteValueAt(int index)
throws AttributeBadValueException
i'th String from this attribute.deleteValueAt in class Attributeindex - the index of the value to remove.AttributeBadValueExceptionpublic void print(java.io.PrintWriter os,
java.lang.String pad)
public void printXML(java.io.PrintWriter pw,
java.lang.String pad,
boolean constrained)
public DAPNode cloneDAG(DAPNode.CloneMap map) throws java.lang.CloneNotSupportedException
Alias.
See DAPNode.cloneDag()