Package mondrian.olap
Class Id.KeySegment
- java.lang.Object
-
- mondrian.olap.Id.Segment
-
- mondrian.olap.Id.KeySegment
-
- Enclosing class:
- Id
public static class Id.KeySegment extends Id.Segment
Identifier segment representing a key, possibly composite.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<Id.NameSegment>
subSegmentList
-
Fields inherited from class mondrian.olap.Id.Segment
quoting
-
-
Constructor Summary
Constructors Constructor Description KeySegment(java.util.List<Id.NameSegment> subSegmentList)
Creates a KeySegment a list of sub-segments.KeySegment(Id.NameSegment... subSegments)
Creates a KeySegment with one or more sub-segments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.List<Id.NameSegment>
getKeyParts()
int
hashCode()
boolean
matches(java.lang.String name)
Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.void
toString(java.lang.StringBuilder buf)
Appends this segment to a StringBuilder.-
Methods inherited from class mondrian.olap.Id.Segment
getQuoting, toList, toString
-
-
-
-
Field Detail
-
subSegmentList
public final java.util.List<Id.NameSegment> subSegmentList
-
-
Constructor Detail
-
KeySegment
public KeySegment(Id.NameSegment... subSegments)
Creates a KeySegment with one or more sub-segments.- Parameters:
subSegments
- Array of sub-segments
-
KeySegment
public KeySegment(java.util.List<Id.NameSegment> subSegmentList)
Creates a KeySegment a list of sub-segments.- Parameters:
subSegmentList
- List of sub-segments
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public void toString(java.lang.StringBuilder buf)
Description copied from class:Id.Segment
Appends this segment to a StringBuilder.- Specified by:
toString
in classId.Segment
- Parameters:
buf
- String builder to write to
-
getKeyParts
public java.util.List<Id.NameSegment> getKeyParts()
- Specified by:
getKeyParts
in classId.Segment
-
matches
public boolean matches(java.lang.String name)
Description copied from class:Id.Segment
Returns whether this segment matches a given name according to the rules of case-sensitivity and quoting.- Specified by:
matches
in classId.Segment
- Parameters:
name
- Name to match- Returns:
- Whether matches
-
-