org.xwiki.wikistream.type
Class WikiType

java.lang.Object
  extended by org.xwiki.wikistream.type.WikiType

@Unstable
public class WikiType
extends Object

Represents various Wikis supported by Wiki Importer.

Since:
5.2M2
Version:
$Id: 077eee1fabf5f8de49e60dbae2dd011cd4bb0b1f $

Field Summary
static WikiType CONFLUENCE
          Confluence wiki type.
static WikiType MEDIAWIKI
          Mediawiki wiki type.
static WikiType WIKI
          Generic WIKI.
static WikiType XWIKI
          XWiki wiki type.
 
Constructor Summary
WikiType(String id)
           
 
Method Summary
 boolean equals(Object object)
           
 String getId()
           
 int hashCode()
           
 String serialize()
           
 String toString()
           
static WikiType unserialize(String str)
          Create a new WikiType from a String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MEDIAWIKI

public static final WikiType MEDIAWIKI
Mediawiki wiki type.


CONFLUENCE

public static final WikiType CONFLUENCE
Confluence wiki type.


XWIKI

public static final WikiType XWIKI
XWiki wiki type.


WIKI

public static final WikiType WIKI
Generic WIKI.

Constructor Detail

WikiType

public WikiType(String id)
Parameters:
id - of a wiki
Method Detail

unserialize

public static WikiType unserialize(String str)
Create a new WikiType from a String.

Parameters:
str - the String to parse
Returns:
a WikiType

getId

public String getId()
Returns:
id of the wiki

serialize

public String serialize()
Returns:
a String representation of the WikiStreamType

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2004–2014 XWiki. All rights reserved.