|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.codegen.Name
public class Name
Name representation for 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).
Field Summary | |
---|---|
private boolean |
m_checked
Name checked (and possibly adjusted) for conflicts flag. |
private boolean |
m_fixed
Flag for name fixed by user request. |
private java.lang.String |
m_text
Actual name text. |
Constructor Summary | |
---|---|
Name()
Default constructor. |
|
Name(Name base)
Copy constructor. |
|
Name(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
java.lang.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(java.lang.String name)
Set item name. |
java.lang.String |
toString()
Generate printable description of name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final boolean m_fixed
private boolean m_checked
private java.lang.String m_text
Constructor Detail |
---|
public Name()
public Name(java.lang.String name)
name
- fixed name text (null
if not fixed)public Name(Name base)
base
- Method Detail |
---|
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 java.lang.String getText()
null
if unspecified)public void setText(java.lang.String name)
isFixed()
returns true.
name
- (null
if unspecified)public java.lang.String toString()
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |