Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.DirectoryResource.lookup()


        for (int i = 0 ; i < indexes.length ; i++) {
      String index = indexes[i];
      if ( index != null && index.length() > 0) {
          DirectoryResource dir =
        (DirectoryResource) resource;
          ResourceReference rr = dir.lookup(index);
          if (rr != null) {
        try {
            FramedResource rindex =
          (FramedResource) rr.lock();
            return rindex.lookup(ls,lr);
View Full Code Here


         "Directory Resource.");
      }
      dirres = (DirectoryResource) res;
      for (int i=0; i < size; i++ ) {
          String name = names[i];
          ResourceReference childref = dirres.lookup(name);
          if (childref != null) {
        try {
            Resource children = childref.lock();
            if (children instanceof FileResource) {
          FileResource fres =
View Full Code Here

  ResourceReference tmpres = null;
  ResourceReference r_parent   = resource.getParent() ;
  try {
      DirectoryResource parent= (DirectoryResource)r_parent.unsafeLock();
      for (int i = 0 ; i < variants.length ; i++) {
    tmpres = parent.lookup(variants[i]) ;
    if (tmpres != null) {
        try {
      FramedResource resource =
            (FramedResource)tmpres.unsafeLock() ;
      NegotiatedFrame itsframe = (NegotiatedFrame)
View Full Code Here

  ResourceReference r_parent   = resource.getParent() ;
  try {
      DirectoryResource parent= (DirectoryResource)r_parent.unsafeLock();
      int missing = 0;
      for (int i = 0 ; i < names.length ; i++) {
    variants[i] = parent.lookup(names[i]) ;
    if (variants[i] == null)
        missing++;
      }
      if (missing > 0) {
    int kept = names.length - missing;
View Full Code Here

        for (int i = 0 ; i < indexes.length ; i++) {
      String index = indexes[i];
      if ( index != null && index.length() > 0) {
          DirectoryResource dir =
        (DirectoryResource) resource;
          ResourceReference rr = dir.lookup(index);
          if (rr != null) {
        try {
            FramedResource rindex =
          (FramedResource) rr.lock();
            return rindex.lookup(ls,lr);
View Full Code Here

    ResourceReference rr       = null;
    FramedResource    resource = null;
    String            name     = null;
    //ugly hack to put CVS link first
    rr = dirResource.lookup("CVS");
    if (rr != null) {
        g.append(getResourceLine(rr, "CVS", false));
    }
    boolean even = true;
    for (int i = 0 ; i < resources.size() ; i++) {
View Full Code Here

    boolean even = true;
    for (int i = 0 ; i < resources.size() ; i++) {
        name = (String) resources.elementAt(i);
        if ( name.equals(listername) || name.equals("CVS"))
      continue;
        rr = dirResource.lookup(name);
        g.append(getResourceLine(rr, name, even));
        even = !even;
    }
    g.append("</table>\n");
    g.append("<P><INPUT TYPE=\"SUBMIT\" NAME=\"SUBMIT\" VALUE=\""+
View Full Code Here

    try {
        dr = (DirectoryResource) getDirResourceRef().lock();
        dir = dr.getDirectory();
        if (debug)
      System.out.println("Deleting " + name);
        rr = dr.lookup(name);
        if (rr != null) {
      try {
          toDeleteFile = new File(dir, name);
          toDeleteFile.delete();
      } catch (Exception ex) {
View Full Code Here

    if ( index != null && index.length() > 0) {
        ResourceReference root = getLocalRootResource();
        try {
      DirectoryResource dir =
          (DirectoryResource)root.lock();
      ResourceReference rr = dir.lookup(index);
      if (rr != null) {
          try {
        FramedResource rindex =
            (FramedResource) rr.lock();
        return rindex.lookup(ls,lr);
View Full Code Here

        for (int i = 0 ; i < indexes.length ; i++) {
      String index = indexes[i];
      if ( index != null && index.length() > 0) {
          DirectoryResource dir =
        (DirectoryResource) resource;
          ResourceReference rr = dir.lookup(index);
          if (rr != null) {
        try {
            FramedResource rindex =
          (FramedResource) rr.lock();
            return rindex.lookup(ls,lr);
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.