Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.graph.query.model
Class NamedSelector

    java.lang.Object
      org.modeshape.graph.query.model.Selector
          org.modeshape.graph.query.model.NamedSelector

All Implemented Interfaces:
  Serializable, LanguageObject, Source, Visitable

Direct Known Subclasses:
  JcrNamedSelector

    @Immutable
    public class NamedSelector

extends Selector

See Also:
  Serialized Form

Constructor Summary
`NamedSelector(SelectorName name)` Create a selector with a name.
`NamedSelector(SelectorName name, SelectorName alias)` Create a selector with the supplied name and alias.

Method Summary
`void` | `accept(Visitor visitor)` Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
`boolean` | `equals(Object obj)`
`int` | `hashCode()`
`String` | `toString()`

Methods inherited from class org.modeshape.graph.query.model.Selector
`alias, aliasOrName, hasAlias, name`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### 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 selector
    `alias` - the alias for this selector; may be null
  Throws:
    `IllegalArgumentException` - if the selector name is null

Method Detail

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`
  See Also:
    `Object.toString()`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`
  See Also:
    `Object.hashCode()`

### equals

    public boolean equals(Object obj)

  Overrides:
    `equals` in class `Object`
  See Also:
    `Object.equals(java.lang.Object)`

### accept

    public void accept(Visitor visitor)

  Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.

  Parameters:
    `visitor` - the visitor; never null
  See Also:
    `Visitable.accept(org.modeshape.graph.query.model.Visitor)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.