org.modeshape.jcr.query.model
Class NamedSelector
java.lang.Object
org.modeshape.jcr.query.model.Selector
org.modeshape.jcr.query.model.NamedSelector
- All Implemented Interfaces:
- Serializable, Selector, Source, LanguageObject, Visitable
@Immutable
public class NamedSelector
- extends Selector
A Selector that has a name.
- See Also:
- Serialized Form
NamedSelector
public NamedSelector(SelectorName name)
- Create a selector with a name.
- Parameters:
name
- the name for this selector
- Throws:
IllegalArgumentException
- if the selector name is null
NamedSelector
public NamedSelector(SelectorName name,
SelectorName alias)
- Create a selector with the supplied name and alias.
- Parameters:
name
- the name for this selectoralias
- the alias for this selector; may be null
- Throws:
IllegalArgumentException
- if the selector name is null
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
accept
public void accept(Visitor visitor)
- Description copied from interface:
Visitable
- Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
- Parameters:
visitor
- the visitor; never null
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.