Examples of SchemaModel


Examples of org.apache.ode.utils.xsd.SchemaModel

    public OXsdTypeVarType resolveXsdType(QName typeName) throws CompilationException {
        OXsdTypeVarType type = _oprocess.xsdTypes.get(typeName);
        if (type == null) {
            __log.debug("Resolving XSD type " + typeName);
            SchemaModel model = null;
            try {
                model = _wsdlRegistry.getSchemaModel();
            } catch (IllegalArgumentException iaa) { }
            if (model == null || !model.knowsSchemaType(typeName))
                throw new CompilationException(__cmsgs.errUndeclaredXsdType(typeName));
           
            type = new OXsdTypeVarType(_oprocess);
            type.debugInfo = createDebugInfo(_processDef, "XSD Type: " + typeName);
            type.xsdType = typeName;
View Full Code Here

Examples of org.apache.ode.utils.xsd.SchemaModel

  }

  public void testInitialModel() throws Exception
  {
    // access initial dummy model
    SchemaModel m = _registry.getSchemaModel();
    assertNotNull(m);

    // verify dummy model
    QName type = new QName("http://fivesight.com/bogus/namespace", "__bogusType__");
    assertTrue(m.knowsSchemaType(type));
  }
View Full Code Here

Examples of org.apache.ode.utils.xsd.SchemaModel

    WSDLLocatorImpl loc = new WSDLLocatorImpl(finder,wsd.toURI());
    Definition4BPEL wsdl = (Definition4BPEL) reader.readWSDL(loc);
    _registry.addDefinition(wsdl, finder, wsd.toURI());

    // access model
    SchemaModel m = _registry.getSchemaModel();
    assertNotNull(m);

    assertTrue("WSDL-Define type not visible.",m.knowsSchemaType(new QName("uri:testing", "TComplex1")));
    assertTrue("Type from import not visible.",m.knowsSchemaType(new QName("uri:test1", "TComplex2")));
   
   
  }
View Full Code Here

Examples of org.apache.ode.utils.xsd.SchemaModel

    public OXsdTypeVarType resolveXsdType(QName typeName) throws CompilationException {
        OXsdTypeVarType type = _oprocess.xsdTypes.get(typeName);
        if (type == null) {
            __log.debug("Resolving XSD type " + typeName);
            SchemaModel model = null;
            try {
                model = _wsdlRegistry.getSchemaModel();
            } catch (IllegalArgumentException iaa) { }
            if (model == null || !model.knowsSchemaType(typeName))
                throw new CompilationException(__cmsgs.errUndeclaredXsdType(typeName));
           
            type = new OXsdTypeVarType(_oprocess);
            type.debugInfo = createDebugInfo(_processDef, "XSD Type: " + typeName);
            type.xsdType = typeName;
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.SchemaModel

  }
 
  public void deserializeConnection(Schema schema, String rdbmsXml, String schemaXml) {
    XStream xstream = getXStream(schema);
    DatabaseMeta databaseMeta = (DatabaseMeta)xstream.fromXML(rdbmsXml);
    SchemaModel schemaModel = (SchemaModel)xstream.fromXML(schemaXml);
   
    //save off cubeName since setSelectedSchemaModel will clear it out
    String cubeName = schemaModel.getCubeName();
   
    connectionModel.setDatabaseMeta(databaseMeta);
    connectionModel.setSelectedSchemaModel(schemaModel);
   
    connectionModel.setCubeName(cubeName);
View Full Code Here

Examples of org.pentaho.aggdes.ui.model.SchemaModel

    bf.createBinding(connectionModel, "connectEnabled", "connection_dialog_accept", "!disabled").fireSourceChanged();

    connectionModel.addPropertyChangeListener(new PropertyChangeListener() {
      public void propertyChange(PropertyChangeEvent evt) {
        if (evt.getPropertyName().equals("selectedSchemaModel")) {
          SchemaModel model = (SchemaModel) evt.getNewValue();
          // select the correct schema value
          for (SchemaProviderUiExtension extension : schemaProviders) {
            if (model != null && extension.supportsSchemaModel(model)) {
              selectedSchemaProvider = extension;
              extension.setSelected(true);
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.