Examples of asJavaString()


Examples of com.volantis.xml.expression.atomic.StringValue.asJavaString()

        if (x instanceof XMLPipelineException) {
            XMLPipelineException pipelineException = (XMLPipelineException) x;
            Map errorProperties = pipelineException.getErrorProperties();
            if (errorProperties != null) {
                Object value = errorProperties.get(arg.asJavaString());
                if (value != null) {
                    result = factory.createStringValue(value.toString());
                }
            }
        }
View Full Code Here

Examples of com.volantis.xml.expression.atomic.StringValue.asJavaString()

    }

    private String getAsJavaString(final double d) {
        SimpleDoubleValue value = new SimpleDoubleValue(expressionFactory, d);
        StringValue stringValue = value.stringValue();
        return stringValue.asJavaString();
    }
}

/*
===========================================================================
View Full Code Here

Examples of com.volantis.xml.expression.atomic.StringValue.asJavaString()

        StringValue str = (StringValue)item;
        // check the StringValues string
        assertEquals("Unexpected StringValue value",
                     "str",
                     str.asJavaString());
    }

    /**
     * Test the getCharacteristic() function with a characteristic that has
     * a value
View Full Code Here

Examples of com.volantis.xml.expression.atomic.StringValue.asJavaString()

        StringValue str = (StringValue)item;
        // check the StringValues string
        assertEquals("Unexpected StringValue value",
                     "str",
                     str.asJavaString());
    }

    /**
     * Test the getCharacteristic() function with a characteristic that has
     * a value
View Full Code Here

Examples of com.volantis.xml.expression.atomic.StringValue.asJavaString()

        StringValue str = (StringValue)item;
        // check the StringValues string
        assertEquals("Unexpected StringValue value",
                     "str",
                     str.asJavaString());
    }

    /**
     * Test the getCharacteristic() function with a characteristic that has
     * a value
View Full Code Here

Examples of org.jruby.RubyString.asJavaString()

       
        Outer: for (int i = 0; i < loadPath.size(); i++) {
            // TODO this is really inefficient, and potentially a problem everytime anyone require's something.
            // we should try to make LoadPath a special array object.
            RubyString entryString = loadPath.eltInternal(i).convertToString();
            String loadPathEntry = entryString.asJavaString();

            if (loadPathEntry.equals(".") || loadPathEntry.equals("")) {
                foundResource = tryResourceFromCWD(state, baseName, suffixType);

                if (foundResource != null) {
View Full Code Here

Examples of org.jruby.RubyString.asJavaString()

        for (int i = 0; i < loadPath.size(); i++) {
            // TODO this is really inefficient, and potentially a problem everytime anyone require's something.
            // we should try to make LoadPath a special array object.
            RubyString entryString = loadPath.eltInternal(i).convertToString();
            String entry = entryString.asJavaString();

            // if entry is an empty string, skip it
            if (entry.length() == 0) continue;

            // if entry starts with a slash, skip it since classloader resources never start with a /
View Full Code Here

Examples of org.jruby.RubyString.asJavaString()

    }

    private String gemClasspath() {
        RubyString gemLocationRubyObject = (RubyString) evaler.eval(runtime,
                "Gem.loaded_specs['asciidoctor'].full_gem_path");
        String gemLocation = gemLocationRubyObject.asJavaString();

        return gemLocation.substring(gemLocation.indexOf("gems"), gemLocation.length());
    }
}
View Full Code Here

Examples of org.jruby.RubyString.asJavaString()

   
    JRubyAsciidoctor asciidoctor = (JRubyAsciidoctor) JRubyAsciidoctor.create("My_gem_path");
    IRubyObject evalScriptlet = asciidoctor.rubyRuntime.evalScriptlet("ENV['GEM_PATH']");
   
    RubyString gemPathValue = (RubyString)evalScriptlet;
    assertThat(gemPathValue.asJavaString(), is("My_gem_path"));
   
   
  }
 
}
View Full Code Here

Examples of org.jruby.RubyString.asJavaString()

        return foundResource;
    }
   
    protected String getLoadPathEntry(IRubyObject entry) {
        RubyString entryString = entry.convertToString();
        return entryString.asJavaString();
    }

    protected LoadServiceResource tryResourceFromJarURLWithLoadPath(String namePlusSuffix, String loadPathEntry) {
        LoadServiceResource foundResource = null;
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.