|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.olap4j.mdx.IdentifierNode.Segment
public static class IdentifierNode.Segment
Component in a compound identifier. It is described by its name and how the name is quoted.
For example, the identifier
[Store].USA.[New Mexico].&[45] has four segments:
IdentifierNode.Quoting.QUOTEDIdentifierNode.Quoting.UNQUOTEDIdentifierNode.Quoting.QUOTEDIdentifierNode.Quoting.KEYIdentifierNode.parseIdentifier(String).

| Constructor Summary | |
|---|---|
IdentifierNode.Segment(ParseRegion region,
String name,
IdentifierNode.Quoting quoting)
Creates a segment with the given quoting and region. |
|
IdentifierNode.Segment(String name)
Creates a quoted segment, "[name]". |
|
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this Segment. |
IdentifierNode.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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdentifierNode.Segment(ParseRegion region,
String name,
IdentifierNode.Quoting quoting)
region - Region of source codename - Namequoting - Quoting stylepublic IdentifierNode.Segment(String name)
name - Name of segment| Method Detail |
|---|
public String toString()
For example, "[Foo]", "&[123]", "Abc".
toString in class Objectpublic ParseRegion getRegion()
public String getName()
public IdentifierNode.Quoting getQuoting()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||