Enum Class XmlPackage

java.lang.Object
java.lang.Enum<XmlPackage>
com.artipie.rpm.meta.XmlPackage
All Implemented Interfaces:
Serializable, Comparable<XmlPackage>, Constable

public enum XmlPackage extends Enum<XmlPackage>
Xml metadata packages.
Since:
0.9
  • Enum Constant Details

    • PRIMARY

      public static final XmlPackage PRIMARY
      Metadata primary.xml.
    • OTHER

      public static final XmlPackage OTHER
      Metadata other.xml.
    • FILELISTS

      public static final XmlPackage FILELISTS
      Metadata filelists.xml.
  • Method Details

    • values

      public static XmlPackage[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static XmlPackage valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • tag

      public String tag()
      Metadata tag.
      Returns:
      String tag
    • lowercase

      public String lowercase()
      Lower-case metadata name.
      Returns:
      String lower-case name
    • tempPrefix

      public String tempPrefix()
      Metadata file prefix name.
      Returns:
      String file prefix name.
    • xmlNamespaces

      public Map<String,String> xmlNamespaces()
      Returns xml namespaces.
      Returns:
      Map of the namespaces.