Examples of addType()


Examples of org.apache.ws.commons.schema.XmlSchema.addType()

            XmlSchema sch = getSchemaByTargetNamespace(schemaTypeName.getNamespaceURI());

            if ("anySimpleType".equals(schemaTypeName.getLocalPart())) {
                XmlSchemaSimpleType type = new XmlSchemaSimpleType(sch);
                type.setName(schemaTypeName.getLocalPart());
                sch.addType(type);
                xst = type;
            } else if ("anyType".equals(schemaTypeName.getLocalPart())) {
                XmlSchemaType type = new XmlSchemaType(sch);
                type.setName(schemaTypeName.getLocalPart());
                sch.addType(type);

Examples of org.apache.ws.commons.schema.XmlSchema.addType()

                sch.addType(type);
                xst = type;
            } else if ("anyType".equals(schemaTypeName.getLocalPart())) {
                XmlSchemaType type = new XmlSchemaType(sch);
                type.setName(schemaTypeName.getLocalPart());
                sch.addType(type);
                xst = type;
            }
        }

        return xst;

Examples of org.broadleafcommerce.common.presentation.AdminPresentationOperationTypes.addType()

                fieldMetadataOverride.setJoinEntityClass(stringValue);
            } else if (entry.getKey().equals(PropertyType.AdminPresentationAdornedTargetCollection.MAINTAINEDADORNEDTARGETFIELDS)) {
                fieldMetadataOverride.setMaintainedAdornedTargetFields(entry.getValue().stringArrayOverrideValue());
            } else if (entry.getKey().equals(PropertyType.AdminPresentationAdornedTargetCollection.OPERATIONTYPES)) {
                AdminPresentationOperationTypes operationType = entry.getValue().operationTypes();
                fieldMetadataOverride.setAddType(operationType.addType());
                fieldMetadataOverride.setRemoveType(operationType.removeType());
                fieldMetadataOverride.setUpdateType(operationType.updateType());
                fieldMetadataOverride.setFetchType(operationType.fetchType());
                fieldMetadataOverride.setInspectType(operationType.inspectType());
            } else if (entry.getKey().equals(PropertyType.AdminPresentationAdornedTargetCollection.ORDER)) {

Examples of org.cx4a.rsense.typing.vertex.PassThroughVertex.addType()

    }

    public static Vertex createArrayVertex(Graph graph, Node node, Vertex[] elements) {
        Array array = createArray(graph, elements);
        Vertex vertex = new PassThroughVertex(node);
        vertex.addType(array);
        array.getTypeVarVertex().addEdge(vertex);
        return vertex;
    }

    public static Vertex createArrayVertex(Graph graph, Node node, Vertex[] elements, int offset, int length) {

Examples of org.cx4a.rsense.typing.vertex.Vertex.addType()

        return new Vertex(null, typeSet);
    }

    public Vertex createFreeSingleTypeVertex(IRubyObject type) {
        Vertex vertex = createFreeVertex();
        vertex.addType(type);
        return vertex;
    }

    public VertexHolder createVertexHolder(Vertex vertex) {
        return new VertexHolder(runtime, vertex);

Examples of org.eclipse.dltk.evaluation.types.MultiTypeType.addType()

    int endIndex = type.lastIndexOf("]");
    type = type.substring(beginIndex, endIndex);
    MultiTypeType arrayType = new MultiTypeType();
    Matcher m = ARRAY_TYPE_PATTERN.matcher(type);
    if (m.find()) {
      arrayType
          .addType(getArrayType(m.group(), currentNamespace, offset));
      type = m.replaceAll("");
    }
    String[] typeNames = type.split(",");
    for (String name : typeNames) {

Examples of org.eclipse.dltk.evaluation.types.MultiTypeType.addType()

            String fullName = result.get(prefix).getNamespace()
                .getFullyQualifiedName();
            name = name.replace(prefix, fullName);
          }
        }
        arrayType.addType(getEvaluatedType(name, currentNamespace));
      }
    }
    return arrayType;
  }
 

Examples of org.geotools.feature.FeatureTypeBuilder.addType()

            typeBuilder.setNamespace(oldType.getNamespace());

            //typeBuilder.setDefaultGeometry(oldType.getDefaultGeometry());
            for (int i = 0; i < oldType.getAttributeCount(); i++) {
                //if (oldType.getAttributeType(i).equals(oldType.getDefaultGeometry())) continue;
                typeBuilder.addType(oldType.getAttributeType(i));
            }
            typeBuilder.addType(new NumericAttributeType("nearest_distance", Double.class, false, 0, 999, null, null));       
            typeBuilder.addType(new NumericAttributeType("nearest_bearing", Double.class, false, 0, 999, null, null));       

            featureType = typeBuilder.getFeatureType();

Examples of org.geotools.feature.FeatureTypeFactory.addType()

    );
   
    AttributeTypeFactory atf = AttributeTypeFactory.defaultInstance();
    FeatureTypeFactory ff = FeatureTypeFactory.newInstance("test");
   
    ff.addType(atf.newAttributeType("geom", Geometry.class));
    FeatureType type = ff.getFeatureType();
   
    Feature f1 = type.create(new Object[]{point});
    Feature f2 = type.create(new Object[]{line});
    Feature f3 = type.create(new Object[]{polygon});

Examples of org.geotools.filter.Capabilities.addType()

        //
        Capabilities capabilities = new Capabilities();

        // Add EFeature ID filter capability
        //
        capabilities.addType(Id.class);

        // Add Include All filter capability
        //
        capabilities.addType(IncludeFilter.class);
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.