notio
Class NameDesignator
java.lang.Object
|
+--notio.Designator
|
+--notio.NameDesignator
- All Implemented Interfaces:
- java.io.Serializable
- public class NameDesignator
- extends Designator
- implements java.io.Serializable
Class for name designators. Used for references by name.
- See Also:
- Serialized Form
Constructor Summary |
NameDesignator()
Constructs a new NameDesignator unassociated with any name. |
NameDesignator(java.lang.String newName)
Constructs a new NameDesignator with the specified name. |
Method Summary |
Designator |
copy(CopyingScheme copyScheme,
java.util.Hashtable substitutionTable)
Performs a copy operation on this designator according to the
the specified CopyingScheme. |
int |
getDesignatorKind()
Returns a constant indicating which kind of designator is. |
java.lang.String |
getName()
Returns the name used in this designator. |
void |
setName(java.lang.String newName)
Sets the name used in this designator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameDesignator
public NameDesignator()
- Constructs a new NameDesignator unassociated with any name.
NameDesignator
public NameDesignator(java.lang.String newName)
- Constructs a new NameDesignator with the specified name.
- Parameters:
newName
- the name.
getDesignatorKind
public int getDesignatorKind()
- Returns a constant indicating which kind of designator is.
In this case the constant will be: Designator.DESIGNATOR_NAME
- Overrides:
getDesignatorKind
in class Designator
- Returns:
- a constant indicating the kind of the designator.
setName
public void setName(java.lang.String newName)
- Sets the name used in this designator.
- Parameters:
newName
- the name to be associated with this designator.
getName
public java.lang.String getName()
- Returns the name used in this designator.
- Returns:
- the name.
copy
public Designator copy(CopyingScheme copyScheme,
java.util.Hashtable substitutionTable)
- Performs a copy operation on this designator according to the
the specified CopyingScheme.
The result may be a new designator or simply a reference to this designator
depending on the scheme.
- Overrides:
copy
in class Designator
- Parameters:
copyScheme
- the copying scheme used to control the copy operation.substitutionTable
- a hashtable containing copied objects available due to
earlier copy operations.- Returns:
- the result of the copy operation.
Copyright 1998-2001 Finnegan Southey