com.atlassian.query.clause
Class MultiClause

java.lang.Object
  extended by com.atlassian.query.clause.MultiClause
All Implemented Interfaces:
Clause
Direct Known Subclasses:
AndClause, OrClause

public abstract class MultiClause
extends Object
implements Clause

An abstract class that will contain multiple clauses.


Constructor Summary
protected MultiClause(Collection<? extends Clause> clauses)
           
 
Method Summary
 boolean equals(Object o)
           
 List<Clause> getClauses()
           
 int hashCode()
           
 String toString()
          Return a string representation of the clause.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.query.clause.Clause
accept, getName
 

Constructor Detail

MultiClause

protected MultiClause(Collection<? extends Clause> clauses)
Method Detail

getClauses

public List<Clause> getClauses()
Specified by:
getClauses in interface Clause
Returns:
child clauses if the clause has any, empty list if it has none.

toString

public String toString()
Description copied from interface: Clause
Return a string representation of the clause. This string representation should not be used to represent the clause to the user as it may not be valid. For example, this method makes no attempt to escape invalid names and strings.

Specified by:
toString in interface Clause
Overrides:
toString in class Object
Returns:
the string representation of the clause.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.