public abstract class DConstructor extends BaseType
DStructure
, DSequence
, DGrid
, and
DList
).DStructure
,
DSequence
,
DGrid
,
Serialized FormDAPNode.CloneMap
_nameClear, _nameEncoded, log
Constructor and Description |
---|
DConstructor()
Constructs a new
DConstructor . |
DConstructor(java.lang.String n)
Constructs a new
DConstructor with the given name. |
Modifier and Type | Method and Description |
---|---|
void |
addVariable(BaseType v)
Adds a variable to the container.
|
abstract void |
addVariable(BaseType v,
int part)
Adds a variable to the container.
|
abstract BaseType |
getVar(int index)
Gets the indexed variable.
|
abstract int |
getVarCount()
Get the number of contained variables (for use with getVar()
|
abstract BaseType |
getVariable(java.lang.String name)
Gets the named variable.
|
abstract java.util.Enumeration |
getVariables()
Return an Enumeration that can be used to iterate over all of the
members of the class.
|
void |
printXML(java.io.PrintWriter pw,
java.lang.String pad,
boolean constrained) |
protected boolean |
someChildHasAttributes(BaseType bt) |
addAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, checkSemantics, cloneDAG, delAttribute, delAttribute, elementCount, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getLongName, getTypeName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printConstraint, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printVal, printXML, printXML, printXML, printXML, setClearName
clone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProject, setProjected
public DConstructor()
DConstructor
.public DConstructor(java.lang.String n)
DConstructor
with the given name.n
- The name of the variable.public abstract void addVariable(BaseType v, int part)
v
- the variable to add.part
- The part of the constructor data to be modified.public final void addVariable(BaseType v)
addVariable(v, 0)
.v
- the variable to add.public abstract BaseType getVariable(java.lang.String name) throws NoSuchVariableException
name
- the name of the variable.NoSuchVariableException
- if the named variable does not
exist in this container.public abstract BaseType getVar(int index) throws NoSuchVariableException
DArray
and
indexes 1 and higher return the associated map Vector
s.index
- the index of the variable in the Vector
Vars.NoSuchVariableException
- if the named variable does not
exist in this container.public abstract int getVarCount()
public abstract java.util.Enumeration getVariables()
protected boolean someChildHasAttributes(BaseType bt)
bt
- The BasType object to search.public void printXML(java.io.PrintWriter pw, java.lang.String pad, boolean constrained)