Package pt.webdetails.cdf.dd.model.core

Examples of pt.webdetails.cdf.dd.model.core.UnsupportedThingException


//    else if(KnownThingKind.MetaModel.equals(kind))
//    {
//      return new JsModelWriter();
//    }

    throw new UnsupportedThingException(kind, t.getId());
  }
View Full Code Here


    if(KnownThingKind.MetaModel.equals(kind))
    {
      return new CdeRunJsModelWriter();
    }

    throw new UnsupportedThingException(kind, t.getId());
  }
View Full Code Here

    { // shouldn't get here anymore
      return getDashboardWriter(((Dashboard)t));
    }

    throw new UnsupportedThingException(kind, t.getId());
  }
View Full Code Here

    else if(KnownThingKind.Dashboard.equals(kind))
    {
      return new CggRunJsDashboardWriter();
    }
   
    throw new UnsupportedThingException(kind, t.getId());
  }
View Full Code Here

       
        assert compType != null;
      }
      catch(IllegalArgumentException ex)
      {
        throw new UnsupportedThingException(kind, className);
      }
     
      // 4. Find the corresponding appropriate base class,
      //    that is a subclass of Component.
      Class compTypeClass = compType.getClass();
     
      Class<? extends Component.Builder> compBuilderClass = null;
      if(VisualComponentType.class.isAssignableFrom(compTypeClass))
      {
        if(GenericComponentType.class.isAssignableFrom(compTypeClass))
        {
          if(PrimitiveComponentType.class.isAssignableFrom(compTypeClass))
          {
            compBuilderClass = PrimitiveComponent.Builder.class;
          }
          else if(CustomComponentType.class.isAssignableFrom(compTypeClass))
          {
            compBuilderClass = CustomComponent.Builder.class;
          }
          else if(WidgetComponentType.class.isAssignableFrom(compTypeClass))
          {
            compBuilderClass = WidgetComponent.Builder.class;
          }
        }
        else if(LayoutComponentType.class.isAssignableFrom(compTypeClass))
        {
          compBuilderClass = LayoutComponent.Builder.class;
        }
      }
      else // NonVisual
      {
        if(DataSourceComponentType.class.isAssignableFrom(compTypeClass))
        {
          compBuilderClass = DataSourceComponent.Builder.class;
        }
        else if(ParameterComponentType.class.isAssignableFrom(compTypeClass))
        {
          compBuilderClass = ParameterComponent.Builder.class;
        }
        else if(CodeComponentType.class.isAssignableFrom(compTypeClass))
        {
          compBuilderClass = CodeComponent.Builder.class;
        }
      }
     
      if(compBuilderClass == null)
      {
        throw new UnsupportedThingException(kind, className);
     
      }
      // 5. Return a corresponding IThingReader.
      return new CdfdeJsAdhocComponentReader(compBuilderClass, compType);
    }
   
    throw new UnsupportedThingException(kind, className);
  }
View Full Code Here

TOP

Related Classes of pt.webdetails.cdf.dd.model.core.UnsupportedThingException

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.