Attributes

NetBeans Wiki: DevFaqFileAttributes

Attributes are KEY-VALUE PAIRS. FileObjects have attributes

Because NetBeans uses files and filesystems as an abstraction for more or less general data containers, FileObjects have attributes. Attributes are very flexible.

Syntax

 
      FileObject my_file_object = new FileObject;
      my_file_object.setAttribute("my favorite number", 2);
 
      ....
 
      the_number = (int) my_file_object.getAttribute("my favorite number");

FileObject (File System API)


Personal Tools