/** Get all file attribute names for this file. * @return enumeration of keys (as strings) */ public Enumeration<String> getAttributes() { return Enumerations.empty(); }
@Override public Enumeration<? extends FileObject> getData(boolean rec) { return Enumerations.empty(); }
@Override public Enumeration<? extends FileObject> getFolders(boolean rec) { return Enumerations.empty(); }
@Override public Enumeration<? extends FileObject> getChildren(boolean rec) { return Enumerations.empty(); }
/** Enum of attributes for one file. */ public Enumeration<String> attrs(String fileName) { Map m = (Map) get(fileName); if (m == null) { return Enumerations.empty(); } else { HashSet s = new HashSet(m.keySet()); return Collections.enumeration(s); } }
/** @return enumeration of all listeners. */ private final Enumeration<FileChangeListener> listeners() { if (listeners == null) { return Enumerations.empty(); } else { return Collections.enumeration(listeners.getAllListeners()); } }
public Enumeration<String> attributes() { if (foAttrs == null) { return Enumerations.empty(); } else { Set<String> s = new HashSet<String>(foAttrs.keySet()); return Collections.enumeration(s); } }
public Enumeration<String> attributes(String name) { if (!isValidEntry(name)) { return org.openide.util.Enumerations.empty(); } return Collections.enumeration(getOrCreateEntry(name).attrs.keySet()); }
public Enumeration<String> attributes(String name) { FileObjRef<? extends FileObject> ref = (FileObjRef<? extends FileObject>) fs.findReference(name); if ((ref == null) && (name.length() == 0) && (fs.rootRef != null)) { ref = fs.rootRef; } if (ref == null) { return Enumerations.empty(); } return ref.attributes(); }
protected Enumeration<String> attributes(String name) { Attributes attr1 = getManifest().getAttributes(name); if (attr1 != null) { class ToString implements org.openide.util.Enumerations.Processor<Object, String> { public String process(Object obj, Collection<Object> ignore) { return obj.toString(); } } return org.openide.util.Enumerations.convert(Collections.enumeration(attr1.keySet()), new ToString()); } else { return org.openide.util.Enumerations.empty(); } }
/** Get all file attribute names for this file. * @return enumeration of keys (as strings) */ public Enumeration getAttributes() { return Enumerations.empty(); }
/** * Find given resource inside provide module representing an OSGi bundle. * The search should happen without resolving the bundle, if possible. E.g. * by using <code>Bundle.getEntry</code>. * @param resName name of the resource to seek for * @return empty enumeration or enumeration with one element. * @since 2.49 */ protected Enumeration<URL> findResources(Module module, String resName) { return Enumerations.empty(); }
/** Enumeration from set * @param set set or null */ private static Enumeration en (Collection c) { if (c == null) { return org.openide.util.Enumerations.empty(); } else { return Collections.enumeration(c); } }
/** Enum of attributes for one file. */ public Enumeration attrs (String fileName) { Map m = (Map)get (fileName); if (m == null) { return org.openide.util.Enumerations.empty(); } else { HashSet s = new HashSet (m.keySet ()); return Collections.enumeration (s); } }
/** Enum of attributes for one file. */ public Enumeration attrs (String fileName) { Map m = (Map)get (fileName); if (m == null) { return org.openide.util.Enumerations.empty(); } else { HashSet s = new HashSet (m.keySet ()); return Collections.enumeration (s); } }
public Enumeration attributes() { if (foAttrs == null) { return org.openide.util.Enumerations.empty(); } else { HashSet s = new HashSet (foAttrs.keySet ()); return Collections.enumeration (s); } }
/** Get all file attribute names for the file. * @param name the file * @return enumeration of keys (as strings) */ public Enumeration attributes(String name) { FileObjRef ref = (FileObjRef)fs.findReference(name); if (ref == null && name.length() == 0 && fs.rootRef != null) ref = fs.rootRef; if (ref == null ) return org.openide.util.Enumerations.empty(); return ref.attributes(); }
/** Get all file attribute names for the file. * @param name the file * @return enumeration of keys (as strings) */ public Enumeration attributes(String name) { FileObjRef ref = (FileObjRef)fs.findReference(name); if (ref == null && name.length() == 0 && fs.rootRef != null) ref = fs.rootRef; if (ref == null ) return org.openide.util.Enumerations.empty(); return ref.attributes(); }
/** @return enumeration of all listeners. */ private final Enumeration listeners () { if (listeners == null) { return Enumerations.empty(); } else { return Enumerations.removeNulls ( Enumerations.array (listeners.getAllListeners ()) ); } }
/** @return enumeration of all listeners. */ private final Enumeration listeners () { if (listeners == null) { return Enumerations.empty(); } else { return Enumerations.removeNulls ( Enumerations.array (listeners.getAllListeners ()) ); } }