Enum 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
    • Field Detail

      • xjcArgument

        private java.lang.String xjcArgument
    • Constructor Detail

      • SourceContentType

        private SourceContentType​(java.lang.String xjcArgument)
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getXjcArgument

        public java.lang.String getXjcArgument()
        Returns:
        The XJC argument flag corresponding to this InputType.