Package com.codingcrayons.aspectfaces.annotation.registration.pointCut.properties

Examples of com.codingcrayons.aspectfaces.annotation.registration.pointCut.properties.Variable


  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("size", annotationProvider.getValue("value")));
    return variables;
  }
View Full Code Here


  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("required", true));
    variables.add(new Variable("notBlank", true));
    return variables;
  }
View Full Code Here

  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("temporal", true));

    // there is the value type of javax.persistence.TemporalType which is enum
    // the enum has #toString() defined as #name()
    // the name returns the exact name of the enum instance which is one of TIMESTAMP, DATE, TIME
    // that means, that the value.toString().toLowerCase returns "timestamp" or "date" or time"
    String temporalType = annotationProvider.getValue("value").toString().toLowerCase();

    variables.add(new Variable("temporalType", temporalType));
    return variables;
  }
View Full Code Here

  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("collection", annotationProvider.getValue("name")));

    String itemRepresentation = (String) annotationProvider.getValue("itemRepresentation");
    if (Strings.isNotBlank(itemRepresentation)) {
      variables.add(new Variable("collectionItemRepresentation", itemRepresentation));
    }

    String itemSorting = (String) annotationProvider.getValue("itemSorting");
    if (Strings.isNotBlank(itemSorting)) {
      variables.add(new Variable("collectionItemSorting", itemSorting));
    }

    return variables;
  }
View Full Code Here

  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    Boolean nullable = (Boolean) annotationProvider.getValue("nullable");
    if (nullable == null || nullable == false) {
      // set only if true, false is default
      variables.add(new Variable("notNull", "true", false));
      variables.add(new Variable("required", true));
    }
    variables.add(new Variable("unique", annotationProvider.getValue("unique")));
    return variables;
  }
View Full Code Here

  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("creditCardNumber", true));
    return variables;
  }
View Full Code Here

  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    Boolean nullable = (Boolean) annotationProvider.getValue("nullable");
    if (nullable == null || nullable == false) {
      // set only if true, false is default
      variables.add(new Variable("notNull", "true", false));
      variables.add(new Variable("required", true));
    }
    variables.add(new Variable("maxLength", annotationProvider.getValue("length")));
    variables.add(new Variable("unique", annotationProvider.getValue("unique")));
    variables.add(new Variable("precision", annotationProvider.getValue("precision")));
    variables.add(new Variable("scale", annotationProvider.getValue("scale")));
    return variables;
  }
View Full Code Here

  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("required", true));
    variables.add(new Variable("notEmpty", true));
    return variables;
  }
View Full Code Here

  }

  @Override
  public List<Variable> getVariables(AnnotationProvider annotationProvider) {
    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("url", true));
    variables.add(new Variable("protocol", annotationProvider.getValue("protocol")));
    variables.add(new Variable("host", annotationProvider.getValue("host")));
    variables.add(new Variable("port", annotationProvider.getValue("port")));
    variables.add(new Variable("regexp", annotationProvider.getValue("regexp")));
    variables.add(new Variable("flags", annotationProvider.getValue("flags")));
    return variables;
  }
View Full Code Here

    String title = (String) annotationProvider.getValue("title");
    String type = (String) annotationProvider.getValue("type");
    PropertyExtension pe = new PropertyExtension(type, title, value);

    List<Variable> variables = new ArrayList<Variable>();
    variables.add(new Variable("after", pe));
    return variables;
  }
View Full Code Here

TOP

Related Classes of com.codingcrayons.aspectfaces.annotation.registration.pointCut.properties.Variable

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.