@Immutable public class SelectorName extends Object implements Readable, Serializable
Constructor and Description |
---|
SelectorName(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getString()
Get the string representation of this query object.
|
int |
hashCode() |
String |
name()
The raw name of the selector.
|
static Set<SelectorName> |
nameSetFrom(SelectorName name)
Create a set that contains the supplied SelectName object.
|
static Set<SelectorName> |
nameSetFrom(SelectorName firstName,
SelectorName... names)
Create a set that contains the supplied SelectName object.
|
static Set<SelectorName> |
nameSetFrom(Set<SelectorName> firstSet,
Set<SelectorName> secondSet)
Create a set that contains the SelectName objects in the supplied sets.
|
SelectorName |
qualifiedForm(NameFactory nameFactory)
Returns this selector in qualified form (see #3.2.5 of the JCR spec)
|
String |
toString() |
public SelectorName(String name)
public String name()
public SelectorName qualifiedForm(NameFactory nameFactory)
nameFactory
- a NameFactory
instance; may not be nullSelectorName
instance for which the name is always in qualified form; never nullpublic String getString()
Readable
public static Set<SelectorName> nameSetFrom(SelectorName name)
name
- the name to include in the set; may be nullpublic static Set<SelectorName> nameSetFrom(SelectorName firstName, SelectorName... names)
firstName
- the first name; may be nullnames
- the remaining names; may be nullpublic static Set<SelectorName> nameSetFrom(Set<SelectorName> firstSet, Set<SelectorName> secondSet)
firstSet
- the first set of names; may be null or emptysecondSet
- the second set of names; may be null or emptyCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.