Package org.olap4j.impl
Class IdentifierParser.MemberBuilder
java.lang.Object
org.olap4j.impl.IdentifierParser.MemberBuilder
- All Implemented Interfaces:
IdentifierParser.Builder
- Direct Known Subclasses:
IdentifierParser.MemberListBuilder
- Enclosing class:
IdentifierParser
public static class IdentifierParser.MemberBuilder
extends Object
implements IdentifierParser.Builder
Implementation of
IdentifierParser.Builder
that collects the segments that make up the name of a member in a list.
It cannot handle tuples or lists of members.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.olap4j.impl.IdentifierParser.Builder
IdentifierParser.Builder.Syntax
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List
<IdentifierSegment> protected final List
<NameSegment> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a member is complete.void
segmentComplete
(ParseRegion region, String name, Quoting quoting, IdentifierParser.Builder.Syntax syntax) Called when a segment is complete.void
Called when a tuple is complete.
-
Field Details
-
subSegments
-
segmentList
-
-
Constructor Details
-
MemberBuilder
public MemberBuilder()
-
-
Method Details
-
tupleComplete
public void tupleComplete()Description copied from interface:IdentifierParser.Builder
Called when a tuple is complete.- Specified by:
tupleComplete
in interfaceIdentifierParser.Builder
-
memberComplete
public void memberComplete()Description copied from interface:IdentifierParser.Builder
Called when a member is complete.- Specified by:
memberComplete
in interfaceIdentifierParser.Builder
-
segmentComplete
public void segmentComplete(ParseRegion region, String name, Quoting quoting, IdentifierParser.Builder.Syntax syntax) Description copied from interface:IdentifierParser.Builder
Called when a segment is complete.For example, the identifier
[Time].1997.[Jan].&31
contains four name segments: "[Time]", "1997", "[Jan]" and "31". The first and third are quoted; the last has an ampersand signifying that it is a key.- Specified by:
segmentComplete
in interfaceIdentifierParser.Builder
- Parameters:
region
- Region of source codename
- Namequoting
- Quoting stylesyntax
- Whether this is a name segment, first part of a key segment, or continuation of a key segment
-