public class QualifiedName extends java.lang.Object implements java.lang.Comparable<QualifiedName>
Modifier and Type | Method and Description |
---|---|
QualifiedName |
append(QualifiedName qName) |
QualifiedName |
append(java.lang.String name) |
int |
compareTo(QualifiedName other) |
static QualifiedName |
deserialize(StubInputStream dataStream) |
boolean |
endsWith(java.lang.String suffix) |
boolean |
equals(java.lang.Object o) |
static QualifiedName |
fromComponents(java.util.Collection<java.lang.String> components) |
static QualifiedName |
fromComponents(java.lang.String... components) |
static QualifiedName |
fromDottedString(java.lang.String refName) |
int |
getComponentCount() |
java.util.List<java.lang.String> |
getComponents() |
java.lang.String |
getFirstComponent() |
java.lang.String |
getLastComponent() |
int |
hashCode() |
java.lang.String |
join(java.lang.String separator) |
boolean |
matches(java.lang.String... components) |
boolean |
matchesPrefix(QualifiedName prefix) |
QualifiedName |
removeHead(int count) |
QualifiedName |
removeLastComponent() |
QualifiedName |
removeTail(int count) |
static void |
serialize(QualifiedName qName,
StubOutputStream dataStream) |
QualifiedName |
subQualifiedName(int fromIndex,
int toIndex) |
java.lang.String |
toString() |
public static QualifiedName fromComponents(java.util.Collection<java.lang.String> components)
public static QualifiedName fromComponents(java.lang.String... components)
public QualifiedName append(java.lang.String name)
public QualifiedName append(QualifiedName qName)
public QualifiedName removeLastComponent()
public QualifiedName removeTail(int count)
public QualifiedName removeHead(int count)
public java.util.List<java.lang.String> getComponents()
public int getComponentCount()
public boolean matches(java.lang.String... components)
public boolean matchesPrefix(QualifiedName prefix)
public boolean endsWith(java.lang.String suffix)
public static void serialize(QualifiedName qName, StubOutputStream dataStream) throws java.io.IOException
java.io.IOException
public static QualifiedName deserialize(StubInputStream dataStream) throws java.io.IOException
java.io.IOException
public java.lang.String getFirstComponent()
public java.lang.String getLastComponent()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String join(java.lang.String separator)
public static QualifiedName fromDottedString(java.lang.String refName)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public QualifiedName subQualifiedName(int fromIndex, int toIndex)
public int compareTo(QualifiedName other)
compareTo
in interface java.lang.Comparable<QualifiedName>