Enum SourceContentType
- java.lang.Object
-
- java.lang.Enum<SourceContentType>
-
- org.codehaus.mojo.jaxb2.javageneration.SourceContentType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SourceContentType>
public enum SourceContentType extends java.lang.Enum<SourceContentType>
The type of source input used by XJC. The constants are duplicated in lowercase since Maven's Mojo argument matcher is case sensitive.- Since:
- 2.0
- See Also:
- The JAXB Reference Implementation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description dtd
Treat input as DTDs (i.e.DTD
Treat input as DTDs (i.e.relaxng
Treat input as Relax NG.RelaxNG
Treat input as Relax NG.relaxng_compact
Treat input as Relax NG with Compact syntax.relaxngcompact
Treat input as Relax NG with Compact syntax.RelaxNGCompact
Treat input as Relax NG with Compact syntax.wsdl
Treat input as WSDL, and compile schemas inside it.WSDL
Treat input as WSDL, and compile schemas inside it.xmlschema
Treat input as W3C XML Schema (i.e.XmlSchema
Treat input as W3C XML Schema (i.e.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
xjcArgument
-
Constructor Summary
Constructors Modifier Constructor Description private
SourceContentType(java.lang.String xjcArgument)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getXjcArgument()
static SourceContentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SourceContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DTD
public static final SourceContentType DTD
Treat input as DTDs (i.e. Document Type Definitions). This option is labelled as "experimental,unsupported" in the XJC documentation.
-
dtd
public static final SourceContentType dtd
Treat input as DTDs (i.e. Document Type Definitions). This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
DTD
-
XmlSchema
public static final SourceContentType XmlSchema
Treat input as W3C XML Schema (i.e. Xml Schema Definitions). This is the standard mode of the XJC (and is recommended by the Codehaus Mojo team as well).
-
xmlschema
public static final SourceContentType xmlschema
Treat input as W3C XML Schema (i.e. Xml Schema Definitions). This is the standard mode of the XJC (and is recommended by the Codehaus Mojo team as well).
- See Also:
XmlSchema
-
RelaxNG
public static final SourceContentType RelaxNG
Treat input as Relax NG. This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
- Relax NG on WikiPedia
-
relaxng
public static final SourceContentType relaxng
Treat input as Relax NG. This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
- Relax NG on WikiPedia,
RelaxNG
-
RelaxNGCompact
public static final SourceContentType RelaxNGCompact
Treat input as Relax NG with Compact syntax. This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
- Relax NG on WikiPedia
-
relaxng_compact
public static final SourceContentType relaxng_compact
Treat input as Relax NG with Compact syntax. This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
- Relax NG on WikiPedia,
RelaxNGCompact
-
relaxngcompact
public static final SourceContentType relaxngcompact
Treat input as Relax NG with Compact syntax. This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
- Relax NG on WikiPedia,
RelaxNGCompact
-
WSDL
public static final SourceContentType WSDL
Treat input as WSDL, and compile schemas inside it. This option is labelled as "experimental,unsupported" in the XJC documentation.
-
wsdl
public static final SourceContentType wsdl
Treat input as WSDL, and compile schemas inside it. This option is labelled as "experimental,unsupported" in the XJC documentation.
- See Also:
- Web Services Description Language (WSDL) 1.1,
WSDL
-
-
Method Detail
-
values
public static SourceContentType[] 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 (SourceContentType c : SourceContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SourceContentType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getXjcArgument
public java.lang.String getXjcArgument()
- Returns:
- The XJC argument flag corresponding to this InputType.
-
-