Package com.jcabi.github

Examples of com.jcabi.github.Coordinates


    @NotNull(message = "repo is never NULL")
    public Repo create(
        @NotNull(message = "json can't be NULL") final JsonObject json
    ) throws IOException {
        final String name = json.getString("name");
        final Coordinates coords = new Coordinates.Simple(this.self, name);
        this.storage.apply(
            new Directives().xpath(this.xpath()).add("repo")
                .attr("coords", coords.toString())
                .add("name").set(name).up()
                .add("description").set("test repository").up()
                .add("private").set("false").up()
        );
        final Repo repo = this.get(coords);
View Full Code Here

TOP

Related Classes of com.jcabi.github.Coordinates

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.