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

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

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

References a server side entity.

Version:
$Id: a9c858b8c2a86fceb42a0a1c1e01fa9bbfa90d5e $

Nested Class Summary
static class EntityReference.EntityType
          Represents a type of entity that can be referenced from the client.
 
Field Summary
protected  Map<String,String> components
          The entity reference components.
 
Constructor Summary
EntityReference()
           
 
Method Summary
 EntityReference clone()
          
 boolean equals(Object obj)
           
 String getComponent(String componentName)
           
 EntityReference.EntityType getType()
           
 int hashCode()
          
 void setComponent(String componentName, String componentValue)
          Sets the value of a reference component.
 void setType(EntityReference.EntityType type)
          Sets the type of entity being referenced.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

protected Map<String,String> components
The entity reference components.

Constructor Detail

EntityReference

public EntityReference()
Method Detail

getType

public EntityReference.EntityType getType()
Returns:
the type of entity being referenced

setType

public void setType(EntityReference.EntityType type)
Sets the type of entity being referenced.

Parameters:
type - the entity type

getComponent

public String getComponent(String componentName)
Parameters:
componentName - the name of a reference component
Returns:
the value of the specified reference component

setComponent

public void setComponent(String componentName,
                         String componentValue)
Sets the value of a reference component.

Parameters:
componentName - the name of the reference component
componentValue - the value of the reference component

hashCode

public int hashCode()

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

equals

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

clone

public EntityReference clone()

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


Copyright © 2004–2014 XWiki. All rights reserved.