Package com.caucho.loader.ivy

Examples of com.caucho.loader.ivy.IvyPattern$Segment


    */
  }

  public void setArtifactPattern(String pattern)
  {
    _artifactPattern = new IvyPattern(pattern);
    _beanConfig.addProperty("artifact-pattern", _artifactPattern);
  }
View Full Code Here


    _beanConfig.addProperty("artifact-pattern", _artifactPattern);
  }

  public void setIvyPattern(String pattern)
  {
    _ivyPattern = new IvyPattern(pattern);
    _beanConfig.addProperty("ivy-pattern", _ivyPattern);
  }
View Full Code Here

      throw new ConfigException(L.l("url: resolver requires an artifact-pattern or a path"));
   
    if (getArtifactPattern() == null && _path != null) {
      String pattern = _path.getURL() + "/[organisation]/[module]/[artifact]-[revision].[ext]";

      setArtifactPattern(new IvyPattern(pattern));
    }
   
    if (getIvyPattern() == null && _path != null) {
      String pattern = _path.getURL() + "/[organisation]/[module]/ivy-[revision].xml";

      setIvyPattern(new IvyPattern(pattern));
    }
  }
View Full Code Here

      throw new ConfigException(L.l("url: resolver requires an artifact-pattern or a path"));
   
    if (getArtifactPattern() == null && _path != null) {
      String pattern = _path.getURL() + "/[organisation]/[module]/[artifact]-[revision].[ext]";

      setArtifactPattern(new IvyPattern(pattern));
    }
   
    if (getIvyPattern() == null && _path != null) {
      String pattern = _path.getURL() + "/[organisation]/[module]/ivy-[revision].xml";

      setIvyPattern(new IvyPattern(pattern));
    }
  }
View Full Code Here

    public void addSegment(short startCode, short endCode, char[] map) {
        if (map.length != (endCode - startCode) + 1) {
            throw new IllegalArgumentException("Wrong number of entries in map");
        }
       
        Segment s = new Segment(startCode, endCode, true);
        // make sure we remove any old entries
        this.segments.remove(s);
        this.segments.put(s, map);
    }
View Full Code Here

   
    /**
     * Add a segment with an idDelta
     */
    public void addSegment(short startCode, short endCode, short idDelta) {
        Segment s = new Segment(startCode, endCode, false);
        // make sure we remove any old entries
        this.segments.remove(s);
        this.segments.put(s, Integer.valueOf(idDelta));
    }
View Full Code Here

   
    /**
     * Remove a segment
     */
    public void removeSegment(short startCode, short endCode) {
        Segment s = new Segment(startCode, endCode, true);
        this.segments.remove(s);
    }
View Full Code Here

        // add the size of each segment header
        size += this.segments.size() * 8;
       
        // add the total number of mappings times the size of a mapping
        for (Iterator i = this.segments.keySet().iterator(); i.hasNext();) {
            Segment s = (Segment) i.next();
           
            // see if there's a map
            if (s.hasMap) {
                // if there is, add its size
                char[] map = (char[]) this.segments.get(s);
View Full Code Here

     */
    @Override
  public char map(char src) {
        // find first segment with endcode > src
        for (Iterator i = this.segments.keySet().iterator(); i.hasNext();) {
            Segment s = (Segment) i.next();
           
            if (s.endCode >= src) {
                // are we within range?
                if (s.startCode <= src) {
                    if (s.hasMap) {
View Full Code Here

     */
    @Override
  public char reverseMap(short glyphID) {
        // look at each segment
        for (Iterator i = this.segments.keySet().iterator(); i.hasNext();) {
            Segment s = (Segment) i.next();
           
            // see if we have a map or a delta
            if (s.hasMap) {
                char[] map = (char[]) this.segments.get(s);
               
View Full Code Here

TOP

Related Classes of com.caucho.loader.ivy.IvyPattern$Segment

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.