org.xwiki.gwt.wysiwyg.client.wiki
Class ResourceReference

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class ResourceReference
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable

A reference to a resource that can be linked. A resource represents the target of a link. Resources are usually entity representations.

Version:
$Id$

Nested Class Summary
static class ResourceReference.ResourceType
          Lists the type of resources that can be linked.
 
Constructor Summary
ResourceReference()
           
 
Method Summary
 ResourceReference clone()
          
 EntityReference getEntityReference()
           
 Map<String,String> getParameters()
           
 ResourceReference.ResourceType getType()
           
 boolean isTyped()
           
 void setEntityReference(EntityReference entityReference)
          Sets the entity reference.
 void setType(ResourceReference.ResourceType type)
          Sets the resource type.
 void setTyped(boolean typed)
          Sets whether the resource type has been explicitly provided or not.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceReference

public ResourceReference()
Method Detail

getType

public ResourceReference.ResourceType getType()
Returns:
the resource type

setType

public void setType(ResourceReference.ResourceType type)
Sets the resource type.

Parameters:
type - the new resource type

isTyped

public boolean isTyped()
Returns:
true if the resource type has been explicitly provided, i.e. if the scheme corresponding to the resource type was included in the resource reference

setTyped

public void setTyped(boolean typed)
Sets whether the resource type has been explicitly provided or not.

Parameters:
typed - true if the resource type has been explicitly provided, i.e. if the scheme corresponding to the resource type was included in the resource reference, false otherwise

getEntityReference

public EntityReference getEntityReference()
Returns:
the entity reference

setEntityReference

public void setEntityReference(EntityReference entityReference)
Sets the entity reference.

Parameters:
entityReference - the new entity reference

getParameters

public Map<String,String> getParameters()
Returns:
the resource parameters

clone

public ResourceReference clone()

Overrides:
clone in class Object
See Also:
Object.clone()


Copyright © 2004-2012 XWiki. All Rights Reserved.