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

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

public class WikiPageReference
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

A reference to a wiki page.

Version:
$Id: WikiPageReference.java 31743 2010-10-13 01:20:32Z mflorea $

Field Summary
static java.lang.String PAGE_NAME
          The component that stores the name of the page that hosts the referenced entity.
static java.lang.String SPACE_NAME
          The component that stores the name of the space that hosts the referenced entity.
static java.lang.String WIKI_NAME
          The component that stores the name of the wiki that hosts the referenced entity.
 
Constructor Summary
WikiPageReference()
          Default constructor.
WikiPageReference(EntityReference entityReference)
          Creates a typed wiki page reference.
WikiPageReference(java.lang.String wikiName, java.lang.String spaceName, java.lang.String pageName)
          Creates a reference to the specified wiki page.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 EntityReference getEntityReference()
           
 java.lang.String getPageName()
           
 java.lang.String getSpaceName()
           
 java.lang.String getWikiName()
           
 int hashCode()
          
 void setPageName(java.lang.String pageName)
          Sets the name of the page that hosts the referenced entity.
 void setSpaceName(java.lang.String spaceName)
          Sets the name of the space that hosts the referenced entity.
 void setWikiName(java.lang.String wikiName)
          Sets the name of the wiki that hosts the referenced entity.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIKI_NAME

public static final java.lang.String WIKI_NAME
The component that stores the name of the wiki that hosts the referenced entity.

See Also:
Constant Field Values

SPACE_NAME

public static final java.lang.String SPACE_NAME
The component that stores the name of the space that hosts the referenced entity.

See Also:
Constant Field Values

PAGE_NAME

public static final java.lang.String PAGE_NAME
The component that stores the name of the page that hosts the referenced entity.

See Also:
Constant Field Values
Constructor Detail

WikiPageReference

public WikiPageReference()
Default constructor.


WikiPageReference

public WikiPageReference(EntityReference entityReference)
Creates a typed wiki page reference.

Parameters:
entityReference - an entity reference

WikiPageReference

public WikiPageReference(java.lang.String wikiName,
                         java.lang.String spaceName,
                         java.lang.String pageName)
Creates a reference to the specified wiki page.

Parameters:
wikiName - the name of the wiki that hosts the page
spaceName - the name of the space that hosts the page
pageName - the name of the page
Method Detail

getWikiName

public java.lang.String getWikiName()
Returns:
the name of the wiki that hosts the referenced entity

setWikiName

public void setWikiName(java.lang.String wikiName)
Sets the name of the wiki that hosts the referenced entity.

Parameters:
wikiName - the name of the wiki that hosts the referenced entity

getSpaceName

public java.lang.String getSpaceName()
Returns:
the name of the space that hosts the referenced entity

setSpaceName

public void setSpaceName(java.lang.String spaceName)
Sets the name of the space that hosts the referenced entity.

Parameters:
spaceName - the name of the space that hosts the referenced entity

getPageName

public java.lang.String getPageName()
Returns:
the name of the page that hosts the referenced entity

setPageName

public void setPageName(java.lang.String pageName)
Sets the name of the page that hosts the referenced entity.

Parameters:
pageName - the name of the page that hosts the referenced entity

getEntityReference

public EntityReference getEntityReference()
Returns:
the underlying, untyped, entity reference

hashCode

public int hashCode()

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

equals

public boolean equals(java.lang.Object obj)

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


Copyright © 2004-2011 XWiki. All Rights Reserved.