Package org.dmd.dms.generated.types

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


   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2659)
    public RuleParam add(Object v) throws DmcValueException {
        synchronized(this){
            RuleParam rc = typeCheck(v);
            if (value == null)
                initValue();
       
            // If false is returned, we didn't modify the set, so return null
            if (!value.add(rc))
View Full Code Here


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

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

        StringBuffer  args = new StringBuffer();
        StringBuffer  argValues = new StringBuffer();
        boolean      first = true;
       
        for(String p : categories){
          RuleParam param;
        try {
          param = new RuleParam(p);
            baseImports.addImport(param.getImportStatement(), "Required for " + param.getName());
            int lastDot = param.getImportStatement().lastIndexOf(".");
            String ptype = param.getImportStatement().substring(lastDot + 1);
           
            if (!first){
//              params.append(", ");
              args.append(", ");
              argValues.append(", ");
            }
           
            params.append("     * @param " + param.getName() + " " + param.getDescription() + "\n");
           
            args.append(ptype + param.getGenericArgs() + " " + param.getName());
           
            argValues.append(param.getName());
             
            first = false;
        } catch (DmcValueException e) {
          System.err.println(e.toString());
          e.printStackTrace();
View Full Code Here

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

    public RuleParam del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            RuleParam key = null;
            RuleParam 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));
           
            RuleParam rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

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

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

    }
   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSVType(GenUtility.java:2010)
    public RuleParam set(Object v) throws DmcValueException {
        RuleParam rc = typeCheck(v);
        // We only return a value if the value actually changed. This supports
        // the applyModifier() mechanism on DmcObject where we only return true
        // if something changed as a result of the modifier
        if (value == null)
            value = rc;
View Full Code Here

TOP

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

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.