Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.ChildPropertyDescriptor


          valueType = Integer.class;
        } else if (valueType == boolean.class) {
          valueType = Boolean.class;
        }
      } else {
        ChildPropertyDescriptor p = (ChildPropertyDescriptor) prop;
        valueType = p.getChildType();
      }
      if (!valueType.isAssignableFrom(value.getClass())) {
        String message = value.getClass().getName() + " is not a valid type for " + prop.getNodeClass().getName() //$NON-NLS-1$
            + " property '" + prop.getId() + '\''; //$NON-NLS-1$
        throw new IllegalArgumentException(message);
View Full Code Here


          valueType = Integer.class;
        } else if (valueType == boolean.class) {
          valueType = Boolean.class;
        }
      } else {
        ChildPropertyDescriptor p = (ChildPropertyDescriptor) prop;
        valueType = p.getChildType();
      }
      if (!valueType.isAssignableFrom(value.getClass())) {
        String message = value.getClass().getName() + " is not a valid type for " + prop.getNodeClass().getName() //$NON-NLS-1$
            + " property '" + prop.getId() + '\''; //$NON-NLS-1$
        throw new IllegalArgumentException(message);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.ChildPropertyDescriptor

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.