Package mondrian.olap
Class Id.NameSegment
java.lang.Object
mondrian.olap.Id.Segment
mondrian.olap.Id.NameSegment
- Enclosing class:
- Id
Component in a compound identifier that describes the name of an object.
Optionally, the name is quoted in brackets.
- See Also:
-
Field Summary
FieldsFields inherited from class mondrian.olap.Id.Segment
quoting -
Constructor Summary
ConstructorsConstructorDescriptionNameSegment(String name) Creates a quoted name segment.NameSegment(String name, Id.Quoting quoting) Creates a name segment with the given quoting. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()inthashCode()booleanReturns whether this segment matches a given name according to the rules of case-sensitivity and quoting.voidtoString(StringBuilder buf) Appends this segment to a StringBuilder.Methods inherited from class mondrian.olap.Id.Segment
getQuoting, toList, toString
-
Field Details
-
name
-
-
Constructor Details
-
NameSegment
Creates a name segment with the given quoting.- Parameters:
name- Namequoting- Quoting style
-
NameSegment
Creates a quoted name segment.- Parameters:
name- Name
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getName
-
getKeyParts
- Specified by:
getKeyPartsin classId.Segment
-
toString
Description copied from class:Id.SegmentAppends this segment to a StringBuilder.- Specified by:
toStringin classId.Segment- Parameters:
buf- String builder to write to
-
matches
Description copied from class:Id.SegmentReturns whether this segment matches a given name according to the rules of case-sensitivity and quoting.- Specified by:
matchesin classId.Segment- Parameters:
name- Name to match- Returns:
- Whether matches
-