@Immutable public abstract class Selector extends Object implements Source, Selector
| Modifier | Constructor and Description |
|---|---|
protected |
Selector(SelectorName name)
Create a selector with a name.
|
protected |
Selector(SelectorName name,
SelectorName alias)
Create a selector with the supplied name and alias.
|
| Modifier and Type | Method and Description |
|---|---|
SelectorName |
alias()
Get the alias name for this source, if there is one.
|
SelectorName |
aliasOrName()
Get the alias if this selector has one, or the name.
|
String |
getNodeTypeName() |
String |
getSelectorName() |
boolean |
hasAlias()
Determine if this selector has an alias.
|
SelectorName |
name()
Get the name for this selector.
|
protected Selector(SelectorName name)
name - the name for this selectorIllegalArgumentException - if the selector name is nullprotected Selector(SelectorName name, SelectorName alias)
name - the name for this selectoralias - the alias for this selector; may be nullIllegalArgumentException - if the selector name is nullpublic SelectorName name()
public SelectorName alias()
public SelectorName aliasOrName()
public boolean hasAlias()
public String getNodeTypeName()
getNodeTypeName in interface Selectorpublic String getSelectorName()
getSelectorName in interface SelectorCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.