/** * Converts all the elements of this <tt>Array</tt> to their String representation, concatenates them using a comma * as a separator. Calling this method is equivalent to calling <tt>join()</tt>. * * @return the string representation of the values in this <tt>Array</tt>, separated by a comma. */ @Override public String toString() { return join(); }
/** * Converts all of the elements of this <tt>Array</tt> to <tt>Strings</tt>, and concatenates these <tt>Strings</tt> * using a single comma (",") as a separator. * * <p> * If this <tt>Array</tt> is empty, the empty string is returned. * * @return the string representation of the values in this <tt>Array</tt>, separated by a comma. */ public String join() { return join(","); }
s = JSCollections.$castArray(query.split("\\")).join("\\\\"); s = JSCollections.$castArray(s.split("-")).join("\\-"); s = JSCollections.$castArray(s.split("=")).join("\\="); s = JSCollections.$castArray(s.split("&&")).join("\\&&"); s = JSCollections.$castArray(s.split("||")).join("\\||"); s = JSCollections.$castArray(s.split("<")).join("\\<"); s = JSCollections.$castArray(s.split(">")).join("\\>"); s = JSCollections.$castArray(s.split("|")).join("\\|"); s = JSCollections.$castArray(s.split("(")).join("\\("); s = JSCollections.$castArray(s.split(")")).join("\\)"); s = JSCollections.$castArray(s.split("{")).join("\\{"); s = JSCollections.$castArray(s.split("}")).join("\\}"); s = JSCollections.$castArray(s.split("[")).join("\\["); s = JSCollections.$castArray(s.split("]")).join("\\]"); s = JSCollections.$castArray(s.split("^")).join("\\^"); s = JSCollections.$castArray(s.split("\"")).join("\\\""); s = JSCollections.$castArray(s.split("~")).join("\\~"); s = JSCollections.$castArray(s.split("*")).join("\\*"); s = JSCollections.$castArray(s.split("?")).join("\\?"); s = JSCollections.$castArray(s.split(":")).join("\\:"); s = JSCollections.$castArray(s.split("/")).join("\\/"); s = JSCollections.$castArray(s.split("+")).join("\\+"); return s;
/** * Return the URL Base portion of the short ID. * * @return {string} Server Base URL of the linked data object. * @method getServerBaseUrl */ public String getServerBaseUrl() { String shortId = trimVersionFromUrl(id); Array<String> parts = (Array<String>) (Object) shortId.split("/"); return parts.slice(0, parts.indexOf("data")).join("/"); }