|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.olap4j.mdx.KeySegment
public class KeySegment
Segment that represents a key or compound key.
Such a segment appears in an identifier with each component prefixed
with "&". For example, in the identifier
"[Customer].[State].&[WA]&[USA]", the third segment is
a compound key whose parts are "WA" and "USA".
NameSegment| Constructor Summary | |
|---|---|
KeySegment(List<NameSegment> subSegmentList)
Creates a KeySegment a list of sub-segments. |
|
KeySegment(NameSegment... subSegments)
Creates a KeySegment with one or more sub-segments. |
|
| 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 KeySegment(NameSegment... subSegments)
subSegments - Array of sub-segmentspublic KeySegment(List<NameSegment> subSegmentList)
subSegmentList - List of sub-segments| Method Detail |
|---|
public String toString()
IdentifierSegmentFor example, "[Foo]", "&[123]", "Abc".
toString in interface IdentifierSegmenttoString in class Objectpublic void toString(StringBuilder buf)
IdentifierSegment
toString in interface IdentifierSegmentbuf - StringBufferpublic ParseRegion getRegion()
IdentifierSegment
getRegion in interface IdentifierSegmentpublic Quoting getQuoting()
IdentifierSegment
getQuoting in interface IdentifierSegmentpublic String getName()
IdentifierSegmentnull if this IdentifierSegment represents a key.
getName in interface IdentifierSegmentpublic List<NameSegment> getKeyParts()
IdentifierSegmentIdentifierSegment.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 | ||||||||