Package org.apache.xmlbeans.impl.schema

Examples of org.apache.xmlbeans.impl.schema.SchemaTypeImpl


                addMutation( context, pm );
              }
            }
            else
            {
              SchemaTypeImpl simpleType = ( SchemaTypeImpl )mynode.getSchemaType();
              XmlObjectTreeModel model2 = new XmlObjectTreeModel( simpleType.getTypeSystem(),
                  simpleType.getParseObject() );
              extractRestrictions( model2, context, mynode, model, scp, stsmap );
            }
          }
        }
      }
View Full Code Here


        list = BoundaryRestrictionUtill.extractEnums( treeNodes[0] );
        restrictionLabel.setJlabel( list.toString().replaceFirst( ",", "" ) );
      }
      else
      {
        SchemaTypeImpl simpleType = ( SchemaTypeImpl )treeNodes[0].getSchemaType();
        if( simpleType != null && !simpleType.isNoType() )
        {
          XmlObjectTreeModel model2 = new XmlObjectTreeModel( simpleType.getTypeSystem(),
              simpleType.getParseObject() );
          list = BoundaryRestrictionUtill.getRestrictions( model2.getRootNode(), new ArrayList<String>() );
          if( list.isEmpty() )
          {
            list.add( "No restrictions in schema are specified for this parameter!" );
          }
View Full Code Here

      {
        typeLabel.setJlabel( "" );
        return;
      }

      SchemaTypeImpl simpleType = ( SchemaTypeImpl )treeNodes[0].getSchemaType();
      if( simpleType != null && !simpleType.isNoType() )
      {
        XmlObjectTreeModel model2 = new XmlObjectTreeModel( simpleType.getTypeSystem(), simpleType.getParseObject() );
        List<String> list = BoundaryRestrictionUtill.getType( model2.getRootNode(), new ArrayList<String>() );
        if( list.isEmpty() )
          typeLabel.setJlabel( "parameter has type [" + simpleType.getName() + "]" );
        else
          typeLabel.setJlabel( "parameter has types [" + list.toString() + "]" );
      }
      else
      {
View Full Code Here

            if (treeNodes.length == 0) {
                typeLabel.setJlabel("");
                return;
            }

            SchemaTypeImpl simpleType = (SchemaTypeImpl) treeNodes[0].getSchemaType();
            if (simpleType != null && !simpleType.isNoType()) {
                XmlObjectTreeModel model2 = new XmlObjectTreeModel(simpleType.getTypeSystem(), simpleType.getParseObject());
                List<String> list = BoundaryRestrictionUtill.getType(model2.getRootNode(), new ArrayList<String>());
                if (list.isEmpty()) {
                    typeLabel.setJlabel("parameter has type [" + simpleType.getName() + "]");
                } else {
                    typeLabel.setJlabel("parameter has types [" + list.toString() + "]");
                }
            } else {
                typeLabel.setJlabel("parameter is missing type in schema");
View Full Code Here

                                stsmap.put(scp.getLabel(), mynode.getNodeText());
                                pm.setMutatedParameters(stsmap);
                                addMutation(context, pm);
                            }
                        } else {
                            SchemaTypeImpl simpleType = (SchemaTypeImpl) mynode.getSchemaType();
                            XmlObjectTreeModel model2 = new XmlObjectTreeModel(simpleType.getTypeSystem(),
                                    simpleType.getParseObject());
                            extractRestrictions(model2, context, mynode, model, scp, stsmap);
                        }
                    }
                }
            }
View Full Code Here

            List<String> list = null;
            if (treeNodes[0].getSchemaType() != null && treeNodes[0].getSchemaType().getEnumerationValues() != null) {
                list = BoundaryRestrictionUtill.extractEnums(treeNodes[0]);
                restrictionLabel.setJlabel(list.toString().replaceFirst(",", ""));
            } else {
                SchemaTypeImpl simpleType = (SchemaTypeImpl) treeNodes[0].getSchemaType();
                if (simpleType != null && !simpleType.isNoType()) {
                    XmlObjectTreeModel model2 = new XmlObjectTreeModel(simpleType.getTypeSystem(),
                            simpleType.getParseObject());
                    list = BoundaryRestrictionUtill.getRestrictions(model2.getRootNode(), new ArrayList<String>());
                    if (list.isEmpty()) {
                        list.add("No restrictions in schema are specified for this parameter!");
                    }
                    restrictionLabel.setJlabel(list.toString());
View Full Code Here

TOP

Related Classes of org.apache.xmlbeans.impl.schema.SchemaTypeImpl

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.