public class QualifiedName extends Object implements Comparable<QualifiedName>
IQualifiedNameProvider.| Modifier and Type | Field and Description |
|---|---|
static QualifiedName |
EMPTY |
| Modifier | Constructor and Description |
|---|---|
protected |
QualifiedName(String... segments) |
| Modifier and Type | Method and Description |
|---|---|
QualifiedName |
append(QualifiedName relativeQualifiedName) |
QualifiedName |
append(String segment) |
int |
compareTo(QualifiedName qualifiedName) |
protected int |
compareTo(QualifiedName qualifiedName,
boolean ignoreCase) |
int |
compareToIgnoreCase(QualifiedName qualifiedName) |
static QualifiedName |
create(List<String> segments)
Low-level factory method.
|
static QualifiedName |
create(String... segments)
Low-level factory method.
|
static QualifiedName |
create(String singleSegment)
Low-level factory method.
|
static QualifiedName |
createFromStream(org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectInputStream eObjectInputStream)
Internal low level factory method.
|
boolean |
equals(Object obj) |
boolean |
equalsIgnoreCase(Object obj) |
String |
getFirstSegment() |
String |
getLastSegment() |
String |
getSegment(int index) |
int |
getSegmentCount() |
List<String> |
getSegments() |
int |
hashCode() |
boolean |
isEmpty() |
QualifiedName |
skipFirst(int skipCount) |
QualifiedName |
skipLast(int skipCount) |
boolean |
startsWith(QualifiedName prefix) |
protected boolean |
startsWith(QualifiedName prefix,
boolean ignoreCase) |
boolean |
startsWithIgnoreCase(QualifiedName prefix) |
QualifiedName |
toLowerCase() |
String |
toString()
Returns a canonical String representation of this using '.' as namespace delimiter.
|
String |
toString(String delimiter)
Returns a String representation of this using
delimiter as namespace delimiter. |
QualifiedName |
toUpperCase() |
static <F> com.google.common.base.Function<F,QualifiedName> |
wrapper(com.google.common.base.Function<F,String> nameFunction)
Wraps a name function to return a qualified name.
|
void |
writeToStream(org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectOutputStream eObjectOutputStream)
Internal low level serialization of QualifiedNames.
|
public static final QualifiedName EMPTY
protected QualifiedName(String... segments)
public static QualifiedName create(String... segments)
IQualifiedNameConverter instead.segments - the segments of the to-be-created qualified name.
May be null, but may not contain null entries.QualifiedName. Never null.IllegalArgumentException - if any of the segments is nullpublic static QualifiedName createFromStream(org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectInputStream eObjectInputStream) throws IOException
IOExceptionpublic void writeToStream(org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.EObjectOutputStream eObjectOutputStream)
throws IOException
IOExceptionpublic static QualifiedName create(List<String> segments)
IQualifiedNameConverter instead.segments - the segments of the to-be-created qualified name. May be null, but may not contain
null entries.QualifiedName. Never null.IllegalArgumentException - if any of the segments is nullpublic static QualifiedName create(String singleSegment)
IQualifiedNameConverter instead.singleSegment - the single segment of the newly created qualified nameIllegalArgumentException - if the singleSegment is nullpublic static <F> com.google.common.base.Function<F,QualifiedName> wrapper(com.google.common.base.Function<F,String> nameFunction)
public boolean isEmpty()
public int getSegmentCount()
public String getSegment(int index)
public String getLastSegment()
public String getFirstSegment()
public QualifiedName append(String segment)
public QualifiedName append(QualifiedName relativeQualifiedName)
public QualifiedName skipFirst(int skipCount)
public QualifiedName skipLast(int skipCount)
public QualifiedName toLowerCase()
public QualifiedName toUpperCase()
public boolean equalsIgnoreCase(Object obj)
public int compareTo(QualifiedName qualifiedName)
compareTo in interface Comparable<QualifiedName>public int compareToIgnoreCase(QualifiedName qualifiedName)
protected int compareTo(QualifiedName qualifiedName, boolean ignoreCase)
public boolean startsWith(QualifiedName prefix)
public boolean startsWithIgnoreCase(QualifiedName prefix)
protected boolean startsWith(QualifiedName prefix, boolean ignoreCase)
public String toString()
IQualifiedNameConverter.toString(QualifiedName).Copyright © 2015. All Rights Reserved.