Package org.xwiki.filter.xar.input
Enum XARInputProperties.SourceType
- java.lang.Object
-
- java.lang.Enum<XARInputProperties.SourceType>
-
- org.xwiki.filter.xar.input.XARInputProperties.SourceType
-
- All Implemented Interfaces:
Serializable
,Comparable<XARInputProperties.SourceType>
- Enclosing class:
- XARInputProperties
public static enum XARInputProperties.SourceType extends Enum<XARInputProperties.SourceType>
The type of theInputSource
.- Since:
- 9.0RC1
- Version:
- $Id: a9f94893d04801ce0ad94e39b1b052a5ea5408bc $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENT
An attachment as XML.CLASS
A class as XML.CLASSPROPERTY
A class property as XML.DOCUMENT
A document as XML.OBJECT
An object as XML.OBJECTPROPERTY
An object property as XML.XAR
A XAR package.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XARInputProperties.SourceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static XARInputProperties.SourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
XAR
public static final XARInputProperties.SourceType XAR
A XAR package.
-
DOCUMENT
public static final XARInputProperties.SourceType DOCUMENT
A document as XML.
-
ATTACHMENT
public static final XARInputProperties.SourceType ATTACHMENT
An attachment as XML.
-
CLASS
public static final XARInputProperties.SourceType CLASS
A class as XML.
-
CLASSPROPERTY
public static final XARInputProperties.SourceType CLASSPROPERTY
A class property as XML.
-
OBJECT
public static final XARInputProperties.SourceType OBJECT
An object as XML.
-
OBJECTPROPERTY
public static final XARInputProperties.SourceType OBJECTPROPERTY
An object property as XML.
-
-
Method Detail
-
values
public static XARInputProperties.SourceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XARInputProperties.SourceType c : XARInputProperties.SourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XARInputProperties.SourceType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-