com.atlassian.query.clause
Class ChangedClauseImpl

java.lang.Object
  extended by com.atlassian.query.clause.ChangedClauseImpl
All Implemented Interfaces:
ChangedClause, Clause

public class ChangedClauseImpl
extends Object
implements ChangedClause

Implementation of ChangedClasue

Since:
v5.0

Constructor Summary
ChangedClauseImpl(ChangedClause clause)
           
ChangedClauseImpl(String field, Operator operator, HistoryPredicate historyPredicate)
           
 
Method Summary
<R> R
accept(ClauseVisitor<R> visitor)
          Allows us to perform operations over the clauses based on the passed in visitor.
 boolean equals(Object o)
           
 List<Clause> getClauses()
           
 String getField()
           
 String getName()
          The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.
 Operator getOperator()
           
 HistoryPredicate getPredicate()
           
 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
 

Constructor Detail

ChangedClauseImpl

public ChangedClauseImpl(String field,
                         Operator operator,
                         HistoryPredicate historyPredicate)

ChangedClauseImpl

public ChangedClauseImpl(ChangedClause clause)
Method Detail

getField

public String getField()
Specified by:
getField in interface ChangedClause

getPredicate

public HistoryPredicate getPredicate()
Specified by:
getPredicate in interface ChangedClause

getOperator

public Operator getOperator()
Specified by:
getOperator in interface ChangedClause

getName

public String getName()
Description copied from interface: Clause
The name of the individual clause, this should be unique amongst the implementations otherwise the clauses will be treated as the "same" type of clause.

Specified by:
getName in interface Clause
Returns:
the name of the individual clause.

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.

accept

public <R> R accept(ClauseVisitor<R> visitor)
Description copied from interface: Clause
Allows us to perform operations over the clauses based on the passed in visitor. This method calls the visit method on the visitor with this reference.

Specified by:
accept in interface Clause
Parameters:
visitor - the visitor to accept.
Returns:
the result of the visit operation who's type is specified by the incoming visitor.

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.