|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.olap4j.mdx.NameSegment
public class NameSegment
Component in a compound identifier that describes the name of an object. Optionally, the name is quoted in brackets.
KeySegment
Constructor Summary | |
---|---|
NameSegment(ParseRegion region,
String name,
Quoting quoting)
Creates a segment with the given quoting and region. |
|
NameSegment(String name)
Creates a quoted segment, "[name]". |
Method Summary | |
---|---|
List<NameSegment> |
getKeyParts()
Returns the key components, if this IdentifierSegment is a key. |
String |
getName()
Returns the name of this IdentifierSegment. |
Quoting |
getQuoting()
Returns how this Segment is quoted. |
ParseRegion |
getRegion()
Returns the region of the source code which this Segment was created from, if it was created by parsing. |
String |
toString()
Returns a string representation of this Segment. |
void |
toString(StringBuilder buf)
Appends a string representation of this Segment to a StringBuffer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NameSegment(ParseRegion region, String name, Quoting quoting)
region
- Region of source codename
- Namequoting
- Quoting stylepublic NameSegment(String name)
name
- Name of segmentMethod Detail |
---|
public String toString()
IdentifierSegment
For example, "[Foo]", "&[123]", "Abc".
toString
in interface IdentifierSegment
toString
in class Object
public void toString(StringBuilder buf)
IdentifierSegment
toString
in interface IdentifierSegment
buf
- StringBufferpublic ParseRegion getRegion()
IdentifierSegment
getRegion
in interface IdentifierSegment
public String getName()
IdentifierSegment
null
if this IdentifierSegment represents a key.
getName
in interface IdentifierSegment
public Quoting getQuoting()
IdentifierSegment
getQuoting
in interface IdentifierSegment
public List<NameSegment> getKeyParts()
IdentifierSegment
IdentifierSegment.getQuoting()
returns
Quoting.KEY
.)
Returns null otherwise.
getKeyParts
in interface IdentifierSegment
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |