public class Name extends Object
Item and related structures. Names may be shared between different levels of the item
structure in some cases (such as an element that contains only a single value, with several layers of indirection),
and this class supports name sharing while retaining the ability to modify the actual name text (necessary to avoid
name conflicts in the generated code).| Constructor and Description |
|---|
Name()
Default constructor.
|
Name(Name base)
Copy constructor.
|
Name(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Get item name.
|
boolean |
isChecked()
Check if name has been checked for conflicts.
|
boolean |
isFixed()
Check if name is fixed by configuration.
|
void |
setChecked(boolean checked)
Set flag for name checked for conflicts.
|
void |
setText(String name)
Set item name.
|
String |
toString()
Generate printable description of name.
|
public Name()
public Name(String name)
name - fixed name text (null if not fixed)public Name(Name base)
base - public boolean isFixed()
true if fixed, false if notpublic boolean isChecked()
ClassHolder) to track which names have already been entered into the set of names used by a class.public void setChecked(boolean checked)
ClassHolder) to track which names have already been entered into the set of names used by a class.checked - public String getText()
null if unspecified)public void setText(String name)
isFixed() returns true.name - (null if unspecified)Copyright © 2005-2014 jibx.org. All Rights Reserved.