Examples of ComplexType


Examples of org.exolab.castor.xml.schema.ComplexType

                    if (baseType.isSimpleType()) {
                        SimpleType simpleType = (SimpleType)baseType;
                      _complexType.setContentType(new SimpleContent(simpleType));
                    }
                    else {
                        ComplexType temp = (ComplexType)baseType;
                        SimpleContent simpleContent = (SimpleContent) temp.getContentType();
                        _complexType.setContentType(simpleContent.copy());
                    }
                }
                  
        }
View Full Code Here

Examples of org.exolab.castor.xml.schema.ComplexType

                }
            }
            break;

        case Structure.COMPLEX_TYPE:
            ComplexType complexType = (ComplexType) structure;
            parent = (complexType).getParent();
            if (parent.getStructureType() != Structure.SCHEMA) {
                getSchemaLocation(parent, location, dealWithAnonTypes);
            }
            if (complexType.getName() != null) {
                location.append(ExtendedBinding.PATH_SEPARATOR);
                location.append(ExtendedBinding.COMPLEXTYPE_ID);
                location.append(((ComplexType) structure).getName());
            }
//            else if (dealWithAnonTypes){
View Full Code Here

Examples of org.geotools.xml.schema.ComplexType

        /**
         * @see org.geotools.xml.schema.Type#canEncode(org.geotools.xml.schema.Element,
         *      java.lang.Object, java.util.Map)
         */
        public boolean canEncode(Element element, Object value, Map hints) {
            ComplexType t = (element.getType() instanceof ComplexType)
                ? (ComplexType) element.getType() : null;

            while ((t != null) && (t != this))
                t = (t.getParent() instanceof ComplexType)
                    ? (ComplexType) t.getParent() : null;

            return ((t != null) && (value instanceof LinearRing));
        }
View Full Code Here

Examples of org.opengis.feature.type.ComplexType

     * @generated
     */
    public static final ComplexType COORDINATESYSTEMAXISPROPERTYTYPE_TYPE = build_COORDINATESYSTEMAXISPROPERTYTYPE_TYPE();
   
    private static ComplexType build_COORDINATESYSTEMAXISPROPERTYTYPE_TYPE() {
        ComplexType builtType = new AbstractLazyComplexTypeImpl(
                new NameImpl("http://www.opengis.net/gml/3.2","CoordinateSystemAxisPropertyType"),
                false, false, null, null) {
            @Override
            public AttributeType buildSuper() {
                return XSSchema.ANYTYPE_TYPE;
View Full Code Here

Examples of org.uengine.contexts.ComplexType

 
 
  protected void createVariableNode(ProcessVariable variable, Record variableNode, boolean isSource){
   
    if(variable.getType() == ComplexType.class){
      ComplexType metaValue = (ComplexType)(variable.getDefaultValue());
      try {

        Class testcls = metaValue.getTypeClass();
       
        ObjectType objType = new ObjectType(testcls);
        FieldDescriptor[] fieldDescriptors = objType.getFieldDescriptors();
        for(int j=0; j<fieldDescriptors.length; j++){
          FieldDescriptor fd = fieldDescriptors[j];
          variableNode.add(createRecord(fd.getName(),variable.getName() + "." + fd.getName(), isSource));
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
     
    }
   
    if(variable.getType() == HtmlFormContext.class){
      HtmlFormContext metaValue = (HtmlFormContext)(variable.getDefaultValue());
     
      if(metaValue.getFormDefId()==null)
        variableNode.add(createRecord("No form template is set", null, isSource));;
     
      String formDefId = ProcessDefinition.splitDefinitionAndVersionId(metaValue.getFormDefId())[0];
      try {
       
        InputStream is = ProcessDesigner.getClientProxy().showFormDefinitionWithDefinitionId(formDefId);
       
        ArrayList formFieldList = (ArrayList) GlobalContext.deserialize(is, ArrayList.class);
        for(int k=0; k<formFieldList.size(); k++){
          Object element = formFieldList.get(k);
          if(element instanceof String){//that means the field parts are started.
            String fieldName = (String)element;
            variableNode.add(createRecord(fieldName, variable.getName() + "." + fieldName, isSource));
          }
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
    } 
   
    if(variable.getType() == OfficeDocumentInstance.class){
      OfficeDocumentInstance metaValue = (OfficeDocumentInstance)(variable.getDefaultValue());
     
      if(metaValue.getDocumentDefId()==null)
        variableNode.add(createRecord("No form template is set", null, isSource));;
     
      String formDefId = ProcessDefinition.splitDefinitionAndVersionId(metaValue.getDocumentDefId())[0];
      try {
       
        InputStream is = ProcessDesigner.getClientProxy().showObjectDefinitionWithDefinitionId(formDefId);
       
        OfficeDocumentDefinition odd = (OfficeDocumentDefinition) GlobalContext.deserialize(is, OfficeDocumentDefinition.class);
View Full Code Here

Examples of org.wso2.wsf.deployer.schemagenarator.types.ComplexType

        //for each annotation
            while(keyIt.hasNext()){

                Object val = annotationMap.get(keyIt.next());
                ComplexType inComplexType = new ComplexType();
                ComplexType outComplexType = new ComplexType();
                XmlSchemaElement inSchemaElement = null;
                XmlSchemaElement outSchemaElement = null;
                QName inParamElementQname = null,outParamElementQname = null;

                if (val instanceof Map){
View Full Code Here

Examples of org.wso2.wsf.deployer.schemagenarator.types.ComplexType

    private void schemaOp(Type parent, ComplexType INCOMPLEX_TYPE, ComplexType OUTCOMPLEX_TYPE, Object key, Object val) {
        if(val instanceof Map){


                   ComplexType c = new ComplexType();
                   c.setName(key.toString());
                   if(parent!=null && parent instanceof ComplexType){
                     ((ComplexType)parent).addMember(c);
                   }
                   parent = c;
View Full Code Here

Examples of xbird.xquery.type.schema.ComplexType

        if(_typedValue != null) {
            return _typedValue;
        }
        Type t = TypeRegistry.safeGet(typeName());
        assert (t != null);
        Type mixed = new ComplexType(ContentType.MixedContent);
        if(TypeUtil.subtypeOf(t, Untyped.UNTYPED) || TypeUtil.subtypeOf(t, mixed)) {
            // - If the element is of type xdt:untyped,
            //  its typed-value is its dm:string-value as an xdt:untypedAtomic.
            // - If the element has a complex type with mixed content (including xs:anyType),
            //  its typed-value is its dm:string-value as an xdt:untypedAtomic.
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.