public static class Id.NameSegment extends Id.Segment
Id.KeySegment
Modifier and Type | Field and Description |
---|---|
String |
name |
quoting
Constructor and Description |
---|
NameSegment(String name)
Creates a quoted name segment.
|
NameSegment(String name,
Id.Quoting quoting)
Creates a name segment with the given quoting.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Id.NameSegment> |
getKeyParts() |
String |
getName() |
int |
hashCode() |
boolean |
matches(String name)
Returns whether this segment matches a given name according to
the rules of case-sensitivity and quoting.
|
void |
toString(StringBuilder buf)
Appends this segment to a StringBuilder.
|
getQuoting, toList, toString
public final String name
public NameSegment(String name, Id.Quoting quoting)
name
- Namequoting
- Quoting stylepublic NameSegment(String name)
name
- Namepublic String getName()
public List<Id.NameSegment> getKeyParts()
getKeyParts
in class Id.Segment
public void toString(StringBuilder buf)
Id.Segment
toString
in class Id.Segment
buf
- String builder to write topublic boolean matches(String name)
Id.Segment
matches
in class Id.Segment
name
- Name to matchCopyright © 2020 Hitachi Vantara. All rights reserved.