PatternOperator.java :  » UnTagged » spvc-project » itu » infobus » ws » Android Open Source

Android Open Source » UnTagged » spvc project 
spvc project » itu » infobus » ws » PatternOperator.java
package itu.infobus.ws;

public enum PatternOperator {

  EQ("="),
  NEQ("!="),
  GT(">"),
  GTEQ(">="),
  LT("<"),
  LTEQ("<="),
  ANY("ANY"),
  UNDEF("UNDEF")
  ;
  String repr;
  private PatternOperator(String repr) {
    this.repr = repr;
  }
  public String getRepresentation() {
    return repr;
  }
  public static PatternOperator fromRepresentation(String repr) {
    for(PatternOperator po : values()) {
      if(po.repr.equals(repr))
        return po;
    }
    return null;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.