Package org.apache.ambari.server.controller.predicate

Examples of org.apache.ambari.server.controller.predicate.ArrayPredicate


  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here


  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here

  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here

  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here

  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here

  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here

  protected static Object getQueryParameterValue(String queryParameterId, Predicate predicate) {

    Object result = null;

    if (predicate instanceof ArrayPredicate) {
      ArrayPredicate arrayPredicate  = (ArrayPredicate) predicate;
      for (Predicate predicateItem : arrayPredicate.getPredicates()) {
          if (predicateItem instanceof EqualsPredicate) {
            EqualsPredicate equalsPredicate =
                (EqualsPredicate) predicateItem;
            if (queryParameterId.equals(equalsPredicate.getPropertyId())) {
              return equalsPredicate.getValue();
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.predicate.ArrayPredicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.