public abstract class NamedElement extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_IDENTIFIER_LENGTH
The maximal length of an identifier of Celesta.
|
| Constructor and Description |
|---|
NamedElement(String name,
IdentifierParser identifierParser) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCelestaDoc()
Returns value of document string for this element.
|
String |
getName()
Returns the name.
|
String |
getQuotedName()
Returns the name in ANSI quotes (e.g.
|
String |
getQuotedNameIfNeeded()
Returns the name in ANSI quotes if needed.
|
int |
hashCode() |
static String |
limitName(String value)
Restricts identifier length by maximal number of symbols.
|
static String |
limitName(String value,
String postfix)
Restricts identifier length with a postfix by maximal number of symbols.
|
void |
setCelestaDoc(String celestaDoc)
Sets value of document string.
|
public static final int MAX_IDENTIFIER_LENGTH
public NamedElement(String name, IdentifierParser identifierParser) throws ParseException
ParseExceptionpublic static String limitName(String value)
value - Identifier of arbitrary length.public static String limitName(String value, String postfix)
value - Identifier of arbitrary length.postfix - Identifier postfix.public final String getName()
public final String getQuotedName()
public final String getQuotedNameIfNeeded()
public String getCelestaDoc()
public void setCelestaDoc(String celestaDoc) throws ParseException
celestaDoc - new valueParseException - incorrect CelestaDocCopyright © 2020 CURS. All rights reserved.