aQute.libg.clauses
Class Selector

java.lang.Object
  extended by aQute.libg.clauses.Selector

public class Selector
extends Object


Constructor Summary
Selector(String instruction, boolean negated)
           
 
Method Summary
 Clause getClause()
           
static List<Selector> getInstructions(Clauses clauses)
           
 String getPattern()
           
static Selector getPattern(String string)
          Convert a string based pattern to a regular expression based pattern.
 boolean isNegated()
           
 boolean matches(String value)
           
static
<T> List<T>
select(Collection<T> domain, List<Selector> instructions)
           
 void setClause(Clause clause)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Selector

public Selector(String instruction,
                boolean negated)
Method Detail

matches

public boolean matches(String value)

isNegated

public boolean isNegated()

getPattern

public String getPattern()

getPattern

public static Selector getPattern(String string)
Convert a string based pattern to a regular expression based pattern. This is called an instruction, this object makes it easier to handle the different cases

Parameters:
string -
Returns:

toString

public String toString()
Overrides:
toString in class Object

getClause

public Clause getClause()

setClause

public void setClause(Clause clause)

getInstructions

public static List<Selector> getInstructions(Clauses clauses)

select

public static <T> List<T> select(Collection<T> domain,
                                 List<Selector> instructions)


Copyright © 2014 aQute SARL. All rights reserved.