Package org.dmg.pmml31.ApplicationDocument

Examples of org.dmg.pmml31.ApplicationDocument.Application


    if( !StringUtils.hasContent( href ) )
      return representation;

    try
    {
      Application app = application;

      if( !href.startsWith( "#" ) )
      {
        ApplicationDocument applicationDocument = loadReferencedWadl( href );
        app = applicationDocument.getApplication();
View Full Code Here


    if( !StringUtils.hasContent( href ) )
      return param;

    try
    {
      Application app = application;

      if( !href.startsWith( "#" ) )
      {
        ApplicationDocument applicationDocument = loadReferencedWadl( href );
        app = applicationDocument.getApplication();
View Full Code Here

  }

  public XmlObject generateWadl()
  {
    ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
    Application application = applicationDocument.addNewApplication();

    createDoc( application.addNewDoc(), restService );

    Resources resources = application.addNewResources();

    // use first endpoint for now -> this should be configurable
    String basePath = restService.getBasePath();
    String[] endpoints = restService.getEndpoints();
    if( endpoints.length > 0 )
      basePath = endpoints[0] + basePath;

    resources.setBase( basePath );

    for( int c = 0; c < restService.getOperationCount(); c++ )
    {
      resources.addNewResource().set( generateWadlResource( restService.getOperationAt( c ) ) );
    }

    String[] namespaces = InferredSchemaManager.getInferredSchema( restService ).getNamespaces();
    if( namespaces.length > 0 )
    {
      Grammars grammars = application.addNewGrammars();
      for( String namespace : namespaces )
      {
        grammars.addNewInclude().setHref( InferredSchemaManager.filenameForNamespace( namespace ) );
      }
    }
View Full Code Here

public class WadlTestCase extends TestCase
{
  public void testWadl() throws Exception
  {
    ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
    Application application = applicationDocument.addNewApplication();
  }
View Full Code Here

public class WadlTest {

    @Test
    public void testWadl() throws Exception {
        ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
        Application application = applicationDocument.addNewApplication();
        assertNotNull(application);
    }
View Full Code Here

        if (!StringUtils.hasContent(href)) {
            return representation;
        }

        try {
            Application app = application;

            if (!href.startsWith("#")) {
                ApplicationDocument applicationDocument = loadReferencedWadl(href);
                app = applicationDocument.getApplication();
            }
View Full Code Here

        if (!StringUtils.hasContent(href)) {
            return param;
        }

        try {
            Application app = application;

            if (!href.startsWith("#")) {
                ApplicationDocument applicationDocument = loadReferencedWadl(href);
                app = applicationDocument.getApplication();
            }
View Full Code Here

        this.restService = restService;
    }

    public XmlObject generateWadl() {
        ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();
        Application application = applicationDocument.addNewApplication();

        createDoc(application.addNewDoc(), restService);

        Resources resources = application.addNewResources();

        // use first endpoint for now -> this should be configurable
        String basePath = restService.getBasePath();
        String[] endpoints = restService.getEndpoints();
        if (endpoints.length > 0) {
            basePath = endpoints[0] + basePath;
        }

        resources.setBase(basePath);

        for (int c = 0; c < restService.getOperationCount(); c++) {
            resources.addNewResource().set(generateWadlResource(restService.getOperationAt(c)));
        }

        String[] namespaces = InferredSchemaManager.getInferredSchema(restService).getNamespaces();
        if (namespaces.length > 0) {
            Grammars grammars = application.addNewGrammars();
            for (String namespace : namespaces) {
                grammars.addNewInclude().setHref(InferredSchemaManager.filenameForNamespace(namespace));
            }
        }
View Full Code Here

        PMML pmmlObject = result.addNewPMML();
        pmmlObject.setVersion("3.0");
        // head of PMML document
        Header header = pmmlObject.addNewHeader();
        header.setCopyright("www.gridminer.org");
        Application application = header.addNewApplication();
        application.setName("GridMiner");
        application.setVersion("1.0");
        //data dictionary
        DataDictionary dataDictionary = pmmlObject.addNewDataDictionary();
        BigInteger pom = new BigInteger(String.valueOf(columnCount));
        dataDictionary.setNumberOfFields(pom);
       
View Full Code Here

                    numInfo.setMaximum(maximum[i]);
                    numInfo.setMean(mean[i]);
                    numInfo.setStandardDeviation(stddev[i]);               
                   
                    // ContStats                                                               
                    ContStats contsStats = statfield.addNewContStats();
                    contsStats.setTotalValuesSum(sum[i]);
                    contsStats.setTotalSquaresSum(sum2[i]);  
                                       
                    int intervalCount = interval[i].length;
                    for(int index=0; index<intervalCount; index++)
                    {
                        org.dmg.pmml31.IntervalDocument.Interval interv =
                            contsStats.addNewInterval();
                        interv.setLeftMargin(interval[i][index].getLeftMargin());
                        interv.setRightMargin(interval[i][index].getRightMargin());
                       
                        interv.setClosure(
                                Closure.Enum.forString(
View Full Code Here

TOP

Related Classes of org.dmg.pmml31.ApplicationDocument.Application

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.