Examples of Types


Examples of org.drools.guvnor.client.packages.PackageHeaderWidget.Types

    String s = "import goo.bar.Whee;\nglobal Wee waa;\n \nsomething else maybe dialect !";
    assertEquals(null, PackageHeaderHelper.parseHeader(s));
  }

  public void testRenderTypes() {
    Types t = new Types();
    t.imports.add(new Import("foo.bar.Baz"));
    String h = PackageHeaderHelper.renderTypes(t);
    assertNotNull(h);
    assertEquals("import foo.bar.Baz", h.trim());
    t = PackageHeaderHelper.parseHeader(h);
View Full Code Here

Examples of org.eclipse.wst.wsdl.Types

    for (Iterator i = getContents().iterator(); i.hasNext();)
    {
      definition = (Definition)i.next();

      // Initialize the inline schemas location
      Types types = definition.getETypes();
      if (types != null)
      {
        XSDSchemaExtensibilityElement el = null;
        for (Iterator j = types.getEExtensibilityElements().iterator(); j.hasNext();)
        {
          ExtensibilityElement extensibilityElement = (ExtensibilityElement)j.next();
          if (!(extensibilityElement instanceof XSDSchemaExtensibilityElement))
          {
            continue;
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.impl.JsonUtils.Types

    * @throws JsonException if any errors occurs.
    */
   @SuppressWarnings("unchecked")
   protected JsonValue createJsonValue(Object object) throws JsonException
   {
      Types t = JsonUtils.getType(object);
      switch (t)
      {
         case NULL :
            return new NullValue();
         case BOOLEAN :
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.impl.JsonUtils.Types

            {
               method.invoke(object, new Object[]{createObjectKnownTypes(methodParameterClazz, childJsonValue)});
            }
            else
            {
               Types type = JsonUtils.getType(methodParameterClazz);
               // other type Collection, Map or Object[].
               if (type != null)
               {
                  switch (type)
                  {
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.impl.JsonUtils.Types

    * @return Object.
    * @throws JsonException if type is unknown.
    */
   private Object createObjectKnownTypes(Class<?> clazz, JsonValue jsonValue) throws JsonException
   {
      Types t = JsonUtils.getType(clazz);
      switch (t)
      {
         case NULL :
            return null;
         case BOOLEAN :
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.impl.JsonUtils.Types

         {
            // If requested object is JsonValue then stop processing here.
            return jsonValue;
         }

         Types jtype = JsonUtils.getType(type);
         if (jtype == Types.ARRAY_BOOLEAN || jtype == Types.ARRAY_BYTE || jtype == Types.ARRAY_SHORT
            || jtype == Types.ARRAY_INT || jtype == Types.ARRAY_LONG || jtype == Types.ARRAY_FLOAT
            || jtype == Types.ARRAY_DOUBLE || jtype == Types.ARRAY_CHAR || jtype == Types.ARRAY_STRING
            || jtype == Types.ARRAY_OBJECT)
         {
View Full Code Here

Examples of org.exoplatform.ws.frameworks.json.impl.JsonUtils.Types

            jsonValue = (JsonValue)t;
         }
         else
         {
            JsonGeneratorImpl generator = new JsonGeneratorImpl();
            Types jtype = JsonUtils.getType(type);
            if (jtype == Types.ARRAY_BOOLEAN || jtype == Types.ARRAY_BYTE || jtype == Types.ARRAY_SHORT
               || jtype == Types.ARRAY_INT || jtype == Types.ARRAY_LONG || jtype == Types.ARRAY_FLOAT
               || jtype == Types.ARRAY_DOUBLE || jtype == Types.ARRAY_CHAR || jtype == Types.ARRAY_STRING
               || jtype == Types.ARRAY_OBJECT)
            {
View Full Code Here

Examples of org.glassfish.hk2.classmodel.reflect.Types

     * @return true, if there is at least one bean annotated with a qualified annotation in the specified paths
     */
    public static boolean hasCDIEnablingAnnotations(DeploymentContext context, Collection<URI> paths) {
        List<String> result = new ArrayList<String>();

        Types types = getTypes(context);
        if (types != null) {
            Iterator<Type> typesIter = types.getAllTypes().iterator();
            while (typesIter.hasNext()) {
                Type type = typesIter.next();
                if (!(type instanceof AnnotationType)) {
                    Iterator<AnnotationModel> annotations = type.getAnnotations().iterator();
                    while (annotations.hasNext()) {
View Full Code Here

Examples of org.graphstream.stream.gephi.JSONEventConstants.Types

     * @throws JSONException
     */
    private void parse(String type, JSONObject gObjs, String eventId, Double t)
      throws JSONException {

  Types eventType = Types.fromString(type);

  if (gObjs.has("filter")) {
      if (gObjs.getString("filter").equals("ALL")) {
    currentStream.graphCleared(sourceId, sourceTime.newEvent());
      }
      /*
       * Map<String, Object> attributes = null; if
       * (gObjs.has("attributes")) { JSONObject attrObj =
       * gObjs.getJSONObject("attributes"); attributes =
       * readAttributes(attrObj); }
       *
       * handler.handleGraphEvent( new FilterEvent(this,
       * eventType.getEventType(), eventType.getElementType(),
       * getFilter(eventType.getElementType(), gObjs), attributes));
       */
      return;
  }

  if (eventType.equals(Types.CG)) {
      Iterator<String> itrAttrs = gObjs.keys();
      while (itrAttrs.hasNext()) {
    String key = itrAttrs.next();
    Object value = gObjs.get(key);
    currentStream.graphAttributeChanged(sourceId,
View Full Code Here

Examples of org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.Types

 
  public IOCompiled(IValueFactory values){
    super(values);
   
    this.values = values;
    this.types2 = new Types(values);
    this.tr = new TypeReifier(values);
    separator = ',';
    header = true;
    this.pdbReader = new StandardTextReader();
  }
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.