Package org.dmd.mvw.tools.mvwgenerator.generated.enums

Examples of org.dmd.mvw.tools.mvwgenerator.generated.enums.RequestOptionEnum


    }
   
    if (tokens.size() > optionStart){
      options = new HashSet<RequestOptionEnum>();
      for(int i=optionStart; i<tokens.size(); i++){
        RequestOptionEnum val = RequestOptionEnum.get(tokens.get(i));
        if (val == null)
          throw(new DmcValueException(tokens.get(i) + " is not a valid option."));
        if ( (val == RequestOptionEnum.CACHE) || (val == RequestOptionEnum.EVENTS)){
          if (!requestType.equals("Get"))
            throw(new DmcValueException("The " + val + " option is only valid with GetRequests"));
View Full Code Here


      options = new HashSet<RequestOptionEnum>();
      String remainder = value.substring(spacepos+1);
      String[] opts = remainder.split(" ");
      for(int i=0; i<opts.length; i++){
        if (opts[i].length() > 0){
          RequestOptionEnum val = RequestOptionEnum.get(opts[i]);
          if (val == null)
            throw(new DmcValueException(opts[i] + " is not a valid option."));
          options.add(val);
        }
      }
View Full Code Here

      options = new HashSet<RequestOptionEnum>();
      String remainder = value.substring(spacepos+1);
      String[] opts = remainder.split(" ");
      for(int i=0; i<opts.length; i++){
        if (opts[i].length() > 0){
          RequestOptionEnum val = RequestOptionEnum.get(opts[i]);
          if (val == null)
            throw(new DmcValueException(opts[i] + " is not a valid option."));
          options.add(val);
        }
      }
View Full Code Here

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

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

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

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

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2659)
    public RequestOptionEnum add(Object v) throws DmcValueException {
        synchronized(this){
            RequestOptionEnum 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 RequestOptionEnum del(Object v){
        synchronized(this){
            RequestOptionEnum rc = null;
            if (value == null)
                return(rc);
           
            try {
                rc = typeCheck(v);
View Full Code Here

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

TOP

Related Classes of org.dmd.mvw.tools.mvwgenerator.generated.enums.RequestOptionEnum

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.