Package org.apache.slide.projector.descriptor

Examples of org.apache.slide.projector.descriptor.ContextException


    for ( int i = 0; i < requirementDescriptor.length; i++ ) {
      Store store = context.getStore(requirementDescriptor[i].getStore());
      Object value = store.get(requirementDescriptor[i].getName());
      if ( value == null ) {
        if ( requirementDescriptor[i].isRequired() ) {
          throw new ContextException(new ErrorMessage("requiredContextMissing", new Object[] { requirementDescriptor[i].getName(), Store.stores[requirementDescriptor[i].getStore()] }));
        } else {
          value = requirementDescriptor[i].getDefaultValue();
          store.put(requirementDescriptor[i].getName(), value);
        }
      }
View Full Code Here

TOP

Related Classes of org.apache.slide.projector.descriptor.ContextException

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.