public static class Id.Segment extends Object
For example, the identifier
[Store].USA.[New Mexico].&[45] has four segments:
Id.Quoting.QUOTEDId.Quoting.UNQUOTEDId.Quoting.QUOTEDId.Quoting.KEY| Modifier and Type | Field and Description |
|---|---|
String |
name |
Id.Quoting |
quoting |
| Constructor and Description |
|---|
Id.Segment(String name,
Id.Quoting quoting) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
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() |
void |
toString(StringBuilder buf)
Appends this segment to a StringBuffer
|
public final String name
public final Id.Quoting quoting
public Id.Segment(String name, Id.Quoting quoting)
public void toString(StringBuilder buf)
buf - StringBufferpublic static List<Id.Segment> toList(String... nameParts)
nameParts - Array of namespublic boolean matches(String name)
name - Name to match