Package org.xwiki.filter.type
Class FilterStreamType
- java.lang.Object
-
- org.xwiki.filter.type.FilterStreamType
-
- All Implemented Interfaces:
Comparable<FilterStreamType>
public class FilterStreamType extends Object implements Comparable<FilterStreamType>
Combination of supported system and their data types.- Since:
- 6.2M1
- Version:
- $Id: d98c651642708eae62f7ae90c5271fcbb3a426e5 $
-
-
Field Summary
Fields Modifier and Type Field Description static FilterStreamType
CONFLUENCE_XML
The Confluence XML format.static String
DATA_TEXT
Data format identifier for TEXT.static String
DATA_XAR
Data format identifier for XAR.static String
DATA_XML
Data format identifier for XML.static FilterStreamType
DOKUWIKI_TEXT
The DokuWiki data format.static FilterStreamType
FILTER_XML
Generic WIKI XML Syntax.static FilterStreamType
MEDIAWIKI_XML
The MediaWiki XML format.static FilterStreamType
XWIKI_INSTANCE
The database stream based on oldcore APIs.static FilterStreamType
XWIKI_XAR_11
The XAR format in version 1.1.static FilterStreamType
XWIKI_XAR_12
The XAR format in version 1.2.static FilterStreamType
XWIKI_XAR_13
The XAR format in version 1.3.static FilterStreamType
XWIKI_XAR_14
The XAR format in version 1.4.static FilterStreamType
XWIKI_XAR_15
The XAR format in version 1.5.static FilterStreamType
XWIKI_XAR_CURRENT
The XAR format in the current version.
-
Constructor Summary
Constructors Constructor Description FilterStreamType(SystemType type, String dataFormat)
FilterStreamType(SystemType type, String dataFormat, String version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FilterStreamType o)
boolean
equals(Object object)
String
getDataFormat()
SystemType
getType()
String
getVersion()
int
hashCode()
String
serialize()
String
toString()
static FilterStreamType
unserialize(String str)
Create a newFilterStreamType
from aString
.
-
-
-
Field Detail
-
DATA_XML
public static final String DATA_XML
Data format identifier for XML.Main content is based on XML.
- See Also:
- Constant Field Values
-
DATA_XAR
public static final String DATA_XAR
Data format identifier for XAR.Main content is based on XAR format.
- See Also:
- Constant Field Values
-
DATA_TEXT
public static final String DATA_TEXT
Data format identifier for TEXT.Main content is textual content which does not belong to another well know and more specific textual content.
- Since:
- 9.5RC1
- See Also:
- Constant Field Values
-
FILTER_XML
public static final FilterStreamType FILTER_XML
Generic WIKI XML Syntax.
-
XWIKI_XAR_11
public static final FilterStreamType XWIKI_XAR_11
The XAR format in version 1.1.- Since:
- 6.2M1
-
XWIKI_XAR_12
public static final FilterStreamType XWIKI_XAR_12
The XAR format in version 1.2.- Since:
- 7.2M1
-
XWIKI_XAR_13
public static final FilterStreamType XWIKI_XAR_13
The XAR format in version 1.3.- Since:
- 9.0RC1
-
XWIKI_XAR_14
public static final FilterStreamType XWIKI_XAR_14
The XAR format in version 1.4.- Since:
- 14.0RC1
-
XWIKI_XAR_15
public static final FilterStreamType XWIKI_XAR_15
The XAR format in version 1.5.- Since:
- 14.0RC1
-
XWIKI_XAR_CURRENT
public static final FilterStreamType XWIKI_XAR_CURRENT
The XAR format in the current version.- Since:
- 7.2M1
-
XWIKI_INSTANCE
public static final FilterStreamType XWIKI_INSTANCE
The database stream based on oldcore APIs.
-
CONFLUENCE_XML
public static final FilterStreamType CONFLUENCE_XML
The Confluence XML format.
-
MEDIAWIKI_XML
public static final FilterStreamType MEDIAWIKI_XML
The MediaWiki XML format.
-
DOKUWIKI_TEXT
public static final FilterStreamType DOKUWIKI_TEXT
The DokuWiki data format.- Since:
- 9.5RC1
-
-
Constructor Detail
-
FilterStreamType
public FilterStreamType(SystemType type, String dataFormat)
- Parameters:
type
- the type of WikidataFormat
- the export data format
-
FilterStreamType
public FilterStreamType(SystemType type, String dataFormat, String version)
- Parameters:
type
- the type of WikidataFormat
- the export data formatversion
- the version
-
-
Method Detail
-
getType
public SystemType getType()
- Returns:
- the wiki
-
getDataFormat
public String getDataFormat()
- Returns:
- the export data format
-
getVersion
public String getVersion()
- Returns:
- the version
-
serialize
public String serialize()
- Returns:
- a
String
representation of theFilterStreamType
-
unserialize
public static FilterStreamType unserialize(String str)
Create a newFilterStreamType
from aString
.- Parameters:
str
- theString
to parse- Returns:
- a
FilterStreamType
-
compareTo
public int compareTo(FilterStreamType o)
- Specified by:
compareTo
in interfaceComparable<FilterStreamType>
-
-