Package org.dmd.dms.generated.types

Examples of org.dmd.dms.generated.types.Field


   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2676)
    public Field del(Object v){
        synchronized(this){
            Field rc = null;
            if (value == null)
                return(rc);
           
            try {
                rc = typeCheck(v);
View Full Code Here


        synchronized(this){
            if (value == null)
                return(false);
           
            try {
                Field val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpMVType(GenUtility.java:2363)
    public Field add(Object v) throws DmcValueException {
        synchronized(this){
            Field rc = typeCheck(v);
            if (value == null)
                value = new ArrayList<Field>();
            value.add(rc);
            return(rc);
        }
View Full Code Here

    public Field del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            Field key = null;
            Field rc = null;
            try {
                key = typeCheck(v);
            } catch (DmcValueException e) {
                throw(new IllegalStateException("Incompatible type passed to del():" + getName(),e));
            }
View Full Code Here

                throw(new IllegalStateException("Attribute: " + getAttributeInfo().name + " is not indexed. You can't use setMVnth()."));
           
            if ( (index < 0) || (index >= getAttributeInfo().indexSize))
                throw(new IllegalStateException("Index " + index + " for attribute: " + getAttributeInfo().name + " is out of range: 0 <= index < " + getAttributeInfo().indexSize));
           
            Field rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

        synchronized(this){
            if (value == null)
                return(false);

            try {
                Field val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

    out.write("    </tr>\n\n");
   
    Iterator<Field> fields = td.getField();
    int fieldNum = 1;
    while(fields.hasNext()){
      Field field = fields.next();
     
      out.write("    <tr>\n");
      out.write("      <td class=\"spacer\"> </td>\n");
      out.write("      <td class=\"label\"> Field " + fieldNum + "</td>\n");
      out.write("      <td> " + field.getName() + " </td>\n");
     
      TypeDefinition fieldType = sm.tdef(field.getType().getObjectName().getNameString());
      if (fieldType == null)
        fieldType = sm.findInternalType(new StringName(field.getType().getObjectName().getNameString()));
     
      String type     = TypeFormatter.getTypeName(fieldType);
      String schema     = fieldType.getDefinedIn().getName().getNameString();

      out.write("      <td class=\"attrType\"> <a href=\"" + schema + ".html#" + type + "\">" + type + "</a> </td>\n");
     
      out.write("      <td> " + field.getDescription() + " </td>\n");
      out.write("    </tr>\n\n");
     
      fieldNum++;
    }
   
View Full Code Here

    out.write("    </tr>\n\n");
   
    Iterator<Field> fields = td.getField();
    int fieldNum = 1;
    while(fields.hasNext()){
      Field field = fields.next();
     
      out.write("    <tr>\n");
      out.write("      <td class=\"spacer\"> </td>\n");
      out.write("      <td class=\"label\"> Field " + fieldNum + "</td>\n");
      out.write("      <td> " + field.getName() + " </td>\n");
     
      TypeDefinition fieldType = sm.tdef(field.getType().getObjectName().getNameString());
      if (fieldType == null)
        fieldType = sm.findInternalType(new StringName(field.getType().getObjectName().getNameString()));
     
      String type     = TypeFormatter.getTypeName(fieldType);
      String schema     = fieldType.getDefinedIn().getName().getNameString();

      out.write("      <td class=\"attrType\"> <a href=\"" + schema + ".html#" + type + "\">" + type + "</a> </td>\n");
     
      out.write("      <td> " + field.getDescription() + " </td>\n");
      out.write("    </tr>\n\n");
     
      fieldNum++;
    }
   
View Full Code Here

TOP

Related Classes of org.dmd.dms.generated.types.Field

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.