Examples of IFactory


Examples of au.csiro.snorocket.core.IFactory

        String version = "20110731";
       
        // Classify ontology from stated form
        System.out.println("Classifying ontology");
        long start = System.currentTimeMillis();
        IFactory factory = new CoreFactory();
        NormalisedOntology no = new NormalisedOntology(factory);
        System.out.println("Importing axioms");
       
        RF1Importer imp = new RF1Importer(
                this.getClass().getResourceAsStream(
View Full Code Here

Examples of au.csiro.snorocket.core.IFactory

        Stats res = new Stats();

        // Classify ontology from stated form
        System.out.println("Classifying base ontology");

        IFactory factory = new CoreFactory();
        NormalisedOntology no = new NormalisedOntology(factory);
        System.out.println("Importing axioms");
        InputStream conceptsFile = this.getClass().getResourceAsStream("/"+conceptsBase);
        InputStream relsFile = this.getClass().getResourceAsStream("/"+relsBase);
        RF1Importer imp = new RF1Importer(conceptsFile, relsFile, version);
View Full Code Here

Examples of com.fineqt.fpb.lib.api.IFactory

                DecodeParameters paras, DecodeResult parentResult,
                DecodeResult fieldResult, PFieldExt fieldMeta) throws DecodeException {
            boolean ret = super.postDecodeField(cxt, input, paras, parentResult,
                    fieldResult, fieldMeta);
            if (fieldMeta.getFieldID() == HTTP_CHUNK__LENGTH_LINE) {
                IFactory factory = getPModule().getFactory();
                IContainerValue lengthLine = (IContainerValue)fieldResult.getValue();
                if (lengthLine != null) {
                    ICharstringValue lenValue = (ICharstringValue)lengthLine.getField(
                            HTTP_CHUNK_LENGTH_LINE__CHUNK_LENGTH);
                    IBooleanValue chunked = factory.createBoolean();
                    if (lenValue != null && !lenValue.getText().equals("0")){
                        //hasChunkData
                        chunked.setBoolean(true);
                    } else {
                        //hasChunkData
View Full Code Here

Examples of com.fineqt.fpb.lib.api.IFactory

                DecodeParameters paras, DecodeResult result) throws DecodeException {
            DecodeResult ret = super.postDecode(cxt, input, paras, result);
            PFieldExt fieldMeta = (PFieldExt)paras.getItemFieldMeta();
            //已解码Header的处理
            if (fieldMeta != null && fieldMeta.getFieldID() == HTTP_MESSAGE__HEADERS) {
                IFactory factory = getPModule().getFactory();
                CommonContext.FieldStackMap fieldStack = cxt.getFieldStackMap();
                @SuppressWarnings("unchecked")
                IListValue<IRecordSetValue> headers =
                    (IListValue<IRecordSetValue>)result.getValue();
                if (headers != null) {
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

  private static CompositeEditor createFilePageForExport(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        FileDialog dialog = new FileDialog(Display.getCurrent()
            .getActiveShell(), SWT.OPEN);
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

  private static CompositeEditor createFilePage(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        FileDialog dialog = new FileDialog(Display.getCurrent()
            .getActiveShell(), SWT.SAVE);
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

  private static CompositeEditor createDirectoryPage(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        DirectoryDialog dialog = new DirectoryDialog(Display
            .getCurrent().getActiveShell(), SWT.SAVE);
        dialog.setMessage("Please choose path for import");
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

  private static CompositeEditor createFolderPage(final Binding bndr){
    CompositeEditor r = new CompositeEditor(bndr);

    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        DirectoryDialog dialog = new DirectoryDialog(Display.getCurrent()
            .getActiveShell(),SWT.OPEN | SWT.READ_ONLY | SWT.DIALOG_TRIM);       
        dialog.setText("Please select path");
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

      final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);

    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        FileDialog dialog = new FileDialog(Display.getCurrent()
            .getActiveShell(), SWT.MULTI | SWT.OPEN);
View Full Code Here

Examples of com.onpositive.semantic.model.realm.IFactory

          tmpS = (String) entity.getProperty(f.name);
          binding.setValue(tmpS, null);
        }
        final String fname = tmpS;

        binding.setFactory(new IFactory() {

          public Object getValue(Object context) {
            FileDialog fd = null;
            if (!edit) {
              fd = new FileDialog(Display.getCurrent()
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.