org.jboss.dna.graph.query.model
Class Selector

java.lang.Object
  extended by org.jboss.dna.graph.query.model.Source
      extended by org.jboss.dna.graph.query.model.Selector
All Implemented Interfaces:
Serializable, LanguageObject, Visitable
Direct Known Subclasses:
AllNodes, NamedSelector

@Immutable
public abstract class Selector
extends Source

See Also:
Serialized Form

Method Summary
 SelectorName getAlias()
          Get the alias name for this source, if there is one.
 SelectorName getAliasOrName()
          Get the alias if this selector has one, or the name.
 SelectorName getName()
          Get the name for this selector.
 boolean hasAlias()
          Determine if this selector has an alias.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.graph.query.model.Visitable
accept
 

Method Detail

getName

public SelectorName getName()
Get the name for this selector.

Returns:
the selector name; never null

getAlias

public SelectorName getAlias()
Get the alias name for this source, if there is one.

Returns:
the alias name, or null if there is none.

getAliasOrName

public SelectorName getAliasOrName()
Get the alias if this selector has one, or the name.

Returns:
the alias or name; never null

hasAlias

public boolean hasAlias()
Determine if this selector has an alias.

Returns:
true if this selector has an alias, or false otherwise.


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