org.netbeans.modules.parsing.api/1 1.55.0 6

org.netbeans.modules.parsing.spi.indexing
Class Indexable

java.lang.Object
  extended by org.netbeans.modules.parsing.spi.indexing.Indexable

public final class Indexable
extends Object

Represens a file to be procesed by an indexer.


Method Summary
 boolean equals(Object obj)
           
 String getMimeType()
          Returns a mime type of the Indexable
 String getRelativePath()
          Returns a relative path from root to the represented file.
 URL getURL()
          Returns absolute URL of the represented file
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getRelativePath

@NonNull
public String getRelativePath()
Returns a relative path from root to the represented file.

Returns:
the relative path from root

getURL

@CheckForNull
public URL getURL()
Returns absolute URL of the represented file

Returns:
the URL of file or null in case of IO error

getMimeType

@NonNull
public String getMimeType()
Returns a mime type of the Indexable

Returns:
the mime type
Throws:
UnsupportedOperationException - if called on deleted Indexable
Since:
1.13

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.parsing.api/1 1.55.0 6

Built on May 24 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.