org.xwiki.rendering.listener.reference
Class ResourceType

java.lang.Object
  extended by org.xwiki.rendering.listener.reference.ResourceType

public class ResourceType
extends java.lang.Object

The Resource type. It can be one of:

Since:
2.5RC1
Version:
$Id$

Field Summary
static ResourceType ATTACHMENT
          Represents an attachment.
static ResourceType DOCUMENT
          Represents a Document.
static ResourceType ICON
          Represents an icon.
static ResourceType INTERWIKI
          Represents a document in another wiki.
static ResourceType MAILTO
          Represents a mail.
static ResourceType PATH
          Represents a relative URL in the current wiki.
static ResourceType UNC
          Represents a UNC (Universal Naming Convention) (eg "\\myserver\myshare\mydoc.txt").
static ResourceType UNKNOWN
          Special type to be used when the type of the resource is not known.
static ResourceType URL
          Represents an URL.
 
Constructor Summary
ResourceType(java.lang.String scheme)
           
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getScheme()
           
 int hashCode()
          
 void setScheme(java.lang.String scheme)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final ResourceType UNKNOWN
Special type to be used when the type of the resource is not known.


DOCUMENT

public static final ResourceType DOCUMENT
Represents a Document.


URL

public static final ResourceType URL
Represents an URL.


INTERWIKI

public static final ResourceType INTERWIKI
Represents a document in another wiki.


PATH

public static final ResourceType PATH
Represents a relative URL in the current wiki.


MAILTO

public static final ResourceType MAILTO
Represents a mail.


ATTACHMENT

public static final ResourceType ATTACHMENT
Represents an attachment.


ICON

public static final ResourceType ICON
Represents an icon.


UNC

public static final ResourceType UNC
Represents a UNC (Universal Naming Convention) (eg "\\myserver\myshare\mydoc.txt").

Since:
2.7M1
Constructor Detail

ResourceType

public ResourceType(java.lang.String scheme)
Parameters:
scheme - see getScheme()
Method Detail

getScheme

public java.lang.String getScheme()
Returns:
the type of the link (eg "doc" for links to documents, etc)

setScheme

public void setScheme(java.lang.String scheme)
Parameters:
scheme - see getScheme()

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)


Copyright © 2004-2011 XWiki. All Rights Reserved.