Examples of Field


Examples of com.sogou.qadev.service.cynthia.bean.Field

    {
      String fieldIdStr = XMLUtil.getAttribute(fieldNode, "id");
      if(CommonUtil.isPosNum(fieldIdStr))
      {
        UUID fieldId = DataAccessFactory.getInstance().createUUID(fieldIdStr);
        Field field = null;
        if (template == null) {
          field = TemplateCache.getInstance().queryField(fieldId);
        }else {
          field = template.getField(fieldId);
        }
        if(field != null)
          set.add(field.getName());
      }else{
        String fieldName = ConfigUtil.baseFieldNameMap.get(fieldIdStr);
        if(fieldName != null)
          set.add(fieldName);
      }
View Full Code Here

Examples of com.stimulus.archiva.domain.ArchiveRules.Field

  public String getAction() { return archiveRule.getAction().toString().toLowerCase(); }
     
  public String getField() { return archiveRule.getField().toString().toLowerCase(); }

  public void setField(String field) throws ConfigurationException {
      Field newField = Field.TO; 
      try {
        newField = Field.valueOf(field.trim().toUpperCase());
      } catch (IllegalArgumentException iae) {
          logger.error("failed to set archive rule field. field is set to an illegal value {field='"+field+"'}");
          logger.info("archive rule field is set to 'to' by default (error recovery)");
View Full Code Here

Examples of com.stuffwithstuff.magpie.ast.Field

      }
     
      Map<String, Field> fields = new HashMap<String, Field>();
      for (Obj entry : expr.getField("fields").asList()) {
        Obj fieldObj = entry.getField(1);
        Field field = new Field(
            getBool(fieldObj, "isMutable"),
            getExpr(fieldObj, "initializer"),
            getPattern(fieldObj, "pattern"));
        fields.put(entry.getField(0).asString(), field);
      }

      return Expr.class_(
          getPosition(expr),
          getString(expr, "doc"),
          getString(expr, "name"),
          parents,
          fields);
    } else if (exprClass == getClass("FunctionExpression")) {
      return Expr.fn(
          getPosition(expr),
          getString(expr, "doc"),
          getPattern(expr, "pattern"),
          getExpr(expr, "body"));
    } else if (exprClass == getClass("ImportExpression")) {
      List<ImportDeclaration> declarations = new ArrayList<ImportDeclaration>();
      for (Obj declaration : expr.getField("declarations").asList()) {
        declarations.add(new ImportDeclaration(
            getBool(declaration, "isExport"),
            getString(declaration, "name"),
            getString(declaration, "rename")));
      }

      return Expr.import_(
          getPosition(expr),
          getString(expr, "scheme"),
          getString(expr, "module"),
          getString(expr, "prefix"),
          getBool(expr, "isOnly"),
          declarations);
    } else if (exprClass == getClass("IntExpression")) {
      return Expr.int_(
          getPosition(expr),
          getInt(expr, "value"));
    } else if (exprClass == getClass("LoopExpression")) {
      return Expr.loop(
          getPosition(expr),
          getExpr(expr, "body"));
    } else if (exprClass == getClass("MatchExpression")) {
      return Expr.match(
          getPosition(expr),
          getExpr(expr, "value"),
          getMatchCaseList(expr, "cases"));
    } else if (exprClass == getClass("MethodExpression")) {
      return Expr.method(
          getPosition(expr),
          getString(expr, "doc"),
          getString(expr, "name"),
          getPattern(expr, "pattern"),
          getExpr(expr, "body"));
    } else if (exprClass == getClass("NameExpression")) {
      return Expr.name(
          getPosition(expr),
          getString(expr, "name"));
    } else if (exprClass == getClass("NothingExpression")) {
      return Expr.nothing(
          getPosition(expr));
    } else if (exprClass == getClass("QuoteExpression")) {
      return Expr.quote(
          getPosition(expr),
          getExpr(expr, "body"));
    } else if (exprClass == getClass("RecordExpression")) {
      List<Pair<String, Expr>> fields = new ArrayList<Pair<String, Expr>>();
      for (Obj field : getList(expr, "fields")) {
        String name = field.getField(0).asString();
        Expr value = convertExpr(field.getField(1));
        fields.add(new Pair<String, Expr>(name, value));
      }
      return Expr.record(
          getPosition(expr),
          fields);
View Full Code Here

Examples of com.sun.appserv.web.cache.mapping.Field

    public boolean isRefreshNeeded(HttpServletRequest request) {
        boolean result = false;

        // cache mapping associated with the request
        CacheMapping mapping = lookupCacheMapping(request);
        Field field = mapping.getRefreshField();
        if (field != null) {
            Object value = field.getValue(context, request);
            // the field's string representation must be "true" or "false"
            if (value != null && "true".equals(value.toString())) {
                result = true;
            }
        }
View Full Code Here

Examples of com.sun.jdi.Field

            if ( o == null ) {
                return -1;
            }
            ObjectReference obj = (ObjectReference) o;
            ClassType frameType = (ClassType) obj.type();
            Field field = frameType.fieldByName( "lineNumber" );
            o = obj.getValue( field );
            if ( o == null ) {
                return -1;
            }
            IntegerValue val = (IntegerValue) o;
View Full Code Here

Examples of com.sun.jdo.spi.persistence.support.sqlstore.query.util.scope.Field

    // init symbol table with field names of the candidate class
    FieldInfo[] fieldInfos = candidateClass.getFieldInfos();
    for (int i = 0; i < fieldInfos.length; i++)
    {
    FieldInfo fieldInfo = fieldInfos[i];
    symtab.declare(fieldInfo.getName(), new Field(fieldInfo));
    }
   
    candidateClass_AST = (JQLAST)currentAST.root;
    returnAST = candidateClass_AST;
    _retTree = _t;
View Full Code Here

Examples of com.sun.msv.grammar.xmlschema.Field

        return (XPath[])pathObjs.toArray(new XPath[pathObjs.size()]);
    }
   
    protected Field parseField( String xpath ) {
        final Vector pathObjs = new Vector();
        Field field = new Field();
       
        // split to A|B|C
        StringTokenizer paths = new StringTokenizer(xpath,"|");
        while(paths.hasMoreTokens()) {
            XPath pathObj = new XPath();
            pathObjs.add(pathObj);
           
            if(!parsePath(pathObj,paths.nextToken(),true))
                return new Field();    // recover by retuning a dummy field.
        }
       
        field.paths = (XPath[])pathObjs.toArray(new XPath[pathObjs.size()]);
        return field;
    }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.classfile.Field

    // Discard duplicate variable references
    if (dups.contains(varRef)) continue;

    final VariableBase var = varRef.getVariable();
    sortRecordFactory.addField(new Field(ACC_PUBLIC,
             cpg.addUtf8(var.getEscapedName()),
             cpg.addUtf8(var.getType().toSignature()),
             null, cpg.getConstantPool()));
    dups.add(varRef);
      }
View Full Code Here

Examples of com.sun.org.apache.xerces.internal.impl.xs.identity.Field

            }
            fText = XMLChar.trim(fText);
            try {
                Field.XPath fXpath = new Field.XPath(fText, fSymbolTable,
                        schemaDoc.fNamespaceSupport);
                Field field = new Field(fXpath, ic);
                ic.addField(field);
            }
            catch (XPathException e) {
                reportSchemaError(e.getKey(), new Object[]{fText}, fElem);
                // put back attr values...
View Full Code Here

Examples of com.sun.webui.jsf.component.Field

            @HandlerInput(name="moduleField", type=com.sun.webui.jsf.component.Field.class),
            @HandlerInput(name="policyValue", type=String.class)}
        )
    public static void setDisableModuleField(HandlerContext handlerCtx) {
        String policyValue = (String)handlerCtx.getInputValue("policyValue");
        Field moduleField = (Field)handlerCtx.getInputValue("moduleField");
        if("user-defined".equals(policyValue)){
            moduleField.setDisabled(false);
        }else
            moduleField.setDisabled(true);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.