Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
joo.classLoader.prepare("package net.jangaroo.net",/* {*/

/**
 * A class representing URIs in generic syntax as specified in <a href="http://www.rfc-editor.org/rfc/rfc3986.txt">RFC 3986</a>.
 */
// todo: support encoding/decoding of components, separate getter/setter of raw (encoded) components
"public interface URI",1,function($$private){return[ /*

  /**
   * The scheme part of the URI.
   * /
  function scheme():String*/,/*
  /**
   * The authority part of the URI.
   * /
  function authority():String*/,/*
  /**
   * The path part of the URI.
   * /
  function path():String*/,/*
  /**
   * The query part of the URI.
   * /
  function query():String*/,/*
  /**
   * The fragment part of the URI.
   * /
  function fragment():String*/,/*

  /**
   * Whether the URI is relative.
   * /
  function isRelative():Boolean*/,/*
  /**
   * Whether the URI is isAbsolute.
   * /
  function isAbsolute():Boolean*/,/*

  /**
     * Relativize a reference uri against this URI as the base URI according to RFC 3986.
     * If both scheme and authority are equal, this method always returns a URI with a relative path,
     * even it an absolute path would be shorter.
     *
     * @param reference the URI to relativize. Must be an absolute URI.
     * @return an URI which yields the reference URI when resolved against the given base URI
     * @throws URIError if this base or the given reference is a relative URI
     * /
  function relativize(reference:URI):URI*/,/*

  /**
   * Resolve a uri against this as a base URI according to RFC 3986.
   * @requires this.isAbsolute()
   * @param reference the uri to resolve
   * @return an absolute URI
   * @throws URIError if this URI is not an absolute URI
   * /
  function resolve(reference:URI):URI*/,

undefined];},[],[], "0.8.0", "2.0.6"
);
New to GrepCode? Check out our FAQ X