Examples of EnumValue


Examples of org.dmd.dms.types.EnumValue

            errors.result.lastResult().lineNumber(mapping.getLineNumber());
          }
          else{
            mapping.setEnumDef(ed);
         
            EnumValue ev = ed.getEnumValue(mapping.getUnsetValue());
            if (ev == null){
              if (errors == null)
                errors = new ResultException();
             
              errors.addError(mapping.getUnsetValue() + " is not a valid member of enum: " + ed.getName());
View Full Code Here

Examples of org.dmd.dms.types.EnumValue

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2659)
    public EnumValue add(Object v) throws DmcValueException {
        synchronized(this){
            EnumValue 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

Examples of org.dmd.dms.types.EnumValue

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

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.EnumValue

            String _value = value;
            if ( _value.startsWith( "\"" ) && _value.endsWith( "\"" ) ) {
                _value = value.substring( 1,
                                          _value.length() - 1 );
            }
            return new EnumValue( new String( _value ) );
        }

        return null;
    }
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.EnumValue

        final TypeNode type = new TypeNodeImpl( "Person" );
        final ConstraintNode c1 = new ConstraintNodeImpl( "Person",
                                                          "name",
                                                          "==",
                                                          new EnumValue( "Names.FRED" ) );
        model.setRoot( type );
        type.addChild( c1 );

        final String drl = GuidedDecisionTreeDRLPersistence.getInstance().marshal( model );
        assertEqualsIgnoreWhitespace( expected,
View Full Code Here

Examples of org.drools.workbench.models.guided.dtree.shared.model.values.impl.EnumValue

        final TypeNode type = new TypeNodeImpl( "Person" );
        final ConstraintNode c1 = new ConstraintNodeImpl( "Person",
                                                          "name",
                                                          "==",
                                                          new EnumValue( "Names.FRED" ) );
        expected.setRoot( type );
        type.addChild( c1 );

        addModelField( "Person",
                       "this",
View Full Code Here

Examples of org.eclipse.ui.internal.editors.text.AccessibilityPreferencePage.EnumeratedDomain.EnumValue

        fControl= control;
        fDomain= domain;
      }
      public void initialize() {
        int value= fOverlayStore.getInt(fPreference.getKey());
        EnumValue enumValue= fDomain.getValueByInteger(value);
        if (enumValue != null) {
          int index= fDomain.getIndex(enumValue);
          if (index >= 0)
            fControl.select(index);
        }
View Full Code Here

Examples of org.eclipse.ui.internal.editors.text.AccessibilityPreferencePage.EnumeratedDomain.EnumValue

    }

    public int getIndex(EnumValue enumValue) {
      int i= 0;
      for (Iterator it= fItems.iterator(); it.hasNext();) {
        EnumValue ev= (EnumValue) it.next();
        if (ev.equals(enumValue))
          return i;
        i++;
      }
      return -1;
    }
View Full Code Here

Examples of org.eclipse.ui.internal.editors.text.AccessibilityPreferencePage.EnumeratedDomain.EnumValue

      return null;
    }

    public EnumValue getValueByInteger(int intValue) {
      for (Iterator it= fItems.iterator(); it.hasNext();) {
        EnumValue e= (EnumValue) it.next();
        if (e.getIntValue() == intValue)
          return e;
      }
      return null;
    }
View Full Code Here

Examples of org.eclipse.ui.internal.editors.text.AccessibilityPreferencePage.EnumeratedDomain.EnumValue

      }
      return null;
    }

    public void addValue(int val) {
      addValue(new EnumValue(val));
    }
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.