public abstract static class Id.Segment extends Object
For example, the identifier
[Store].USA.[New Mexico].&[45]
has four segments:
Id.Quoting.QUOTED
Id.Quoting.UNQUOTED
Id.Quoting.QUOTED
Id.Quoting.KEY
Modifier and Type | Field and Description |
---|---|
Id.Quoting |
quoting |
Modifier | Constructor and Description |
---|---|
protected |
Segment(Id.Quoting quoting) |
Modifier and Type | Method and Description |
---|---|
abstract List<Id.NameSegment> |
getKeyParts() |
Id.Quoting |
getQuoting() |
abstract boolean |
matches(String name)
Returns whether this segment matches a given name according to
the rules of case-sensitivity and quoting.
|
static List<Id.Segment> |
toList(String... nameParts)
Converts an array of names to a list of segments.
|
String |
toString() |
abstract void |
toString(StringBuilder buf)
Appends this segment to a StringBuilder.
|
public final Id.Quoting quoting
protected Segment(Id.Quoting quoting)
public Id.Quoting getQuoting()
public abstract List<Id.NameSegment> getKeyParts()
public static List<Id.Segment> toList(String... nameParts)
nameParts
- Array of namespublic abstract boolean matches(String name)
name
- Name to matchpublic abstract void toString(StringBuilder buf)
buf
- String builder to write toCopyright © 2019 Hitachi Vantara. All rights reserved.