Package com.dtrules.entity

Examples of com.dtrules.entity.REntityEntry


        IREntity e = session.getEntityFactory().findRefEntity(entity);
       
        ArrayList<RName> attributes = EntityFactory.sorted(e.getAttributeIterator(),true);
        for(RName a : attributes){
            Row          row   = nextRow(s, rowC, 8);
            REntityEntry entry = e.getEntry(a);
           
            row.getCell(0).setCellValue(e.getName().stringValue());      // Name
            row.getCell(1).setCellValue(a.stringValue());                // Attribute
            row.getCell(2).setCellValue(entry.type.toString());          // Type
            row.getCell(3).setCellValue(entry.subtype);                  // SubType
View Full Code Here


        RName entityname = name.getEntityName();

        for (int i = entitystkptr - 1; i >= 0; i--) {
            IREntity e = entitystk[i];
            if (!e.isReadOnly() && (entityname == null || e.getName().equals(entityname))) {
                REntityEntry entry = e.getEntry(name);
                if (entry != null && (!protect || entry.writable)) {
                    if (testState(TRACE)) {
                        out.printdata("def", "entity", e.postFix(), "name", name.stringValue(), value.postFix());
                    }
View Full Code Here

      buff.append(e.getName().toString());
      buff.append("\r\n");
      Iterator<RName> iattribs = e.getAttributeIterator();
      while(iattribs.hasNext()){
        RName        entryname  = (RName)iattribs.next();
        REntityEntry entry      = e.getEntry(entryname);
        buff.append("   ");
        buff.append(entryname);
        if(entry.defaultvalue!=null){
          buff.append("  --  default value: ");
          buff.append(entry.defaultvalue.toString());
View Full Code Here

           }
           RName attributes [] = new RName[0];
           attributes = entity.getAttributeSet().toArray(attributes);
           Arrays.sort(attributes);
           for (RName attribute : attributes){
               REntityEntry entry = entity.getEntry(attribute);
              
               String name          = attribute.stringValue();
               String type          = entry.getType().toString();
               String subtype       = entry.getSubtype();
               String access        = (entry.readable ? "r":"") + (entry.writable ? "w":"");
               String input         = entry.getInput();
               String default_value = entry.getDefaulttxt();
               String comment       = entry.getComment();
              
               xout.opentag("field",
                       "name",name,
                       "type",type,
                       "subtype",subtype,
View Full Code Here

            REntity  entity  = ef.findRefEntity(name);
            Iterator<RName> attribs = entity.getAttributeIterator();
            addType(entity,entity.getName(),IRObject.iEntity);
            while(attribs.hasNext()){
                RName        attribname = attribs.next();
                REntityEntry entry      = entity.getEntry(attribname);
                addType(entity,attribname,entry.type);
            }
        }
       
        Iterator<RName> tables = ef.getDecisionTableRNameIterator();
View Full Code Here

TOP

Related Classes of com.dtrules.entity.REntityEntry

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.