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 FilterStreamTypeCONFLUENCE_XMLThe Confluence XML format.static StringDATA_TEXTData format identifier for TEXT.static StringDATA_XARData format identifier for XAR.static StringDATA_XMLData format identifier for XML.static FilterStreamTypeDOKUWIKI_TEXTThe DokuWiki data format.static FilterStreamTypeFILTER_XMLGeneric WIKI XML Syntax.static FilterStreamTypeMEDIAWIKI_XMLThe MediaWiki XML format.static FilterStreamTypeXWIKI_INSTANCEThe database stream based on oldcore APIs.static FilterStreamTypeXWIKI_XAR_11The XAR format in version 1.1.static FilterStreamTypeXWIKI_XAR_12The XAR format in version 1.2.static FilterStreamTypeXWIKI_XAR_13The XAR format in version 1.3.static FilterStreamTypeXWIKI_XAR_14The XAR format in version 1.4.static FilterStreamTypeXWIKI_XAR_15The XAR format in version 1.5.static FilterStreamTypeXWIKI_XAR_CURRENTThe 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 intcompareTo(FilterStreamType o)booleanequals(Object object)StringgetDataFormat()SystemTypegetType()StringgetVersion()inthashCode()Stringserialize()StringtoString()static FilterStreamTypeunserialize(String str)Create a newFilterStreamTypefrom 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
Stringrepresentation of theFilterStreamType
-
unserialize
public static FilterStreamType unserialize(String str)
Create a newFilterStreamTypefrom aString.- Parameters:
str- theStringto parse- Returns:
- a
FilterStreamType
-
compareTo
public int compareTo(FilterStreamType o)
- Specified by:
compareToin interfaceComparable<FilterStreamType>
-
-