Enum ObjectIdentifierQualifier

java.lang.Object
java.lang.Enum<ObjectIdentifierQualifier>
eu.europa.esig.dss.enumerations.ObjectIdentifierQualifier
All Implemented Interfaces:
Serializable, Comparable<ObjectIdentifierQualifier>

public enum ObjectIdentifierQualifier extends Enum<ObjectIdentifierQualifier>
Declares type of the defines identifier Used in XAdES
                
 			<xsd:simpleType name="QualifierType">
 				<xsd:restriction base="xsd:string">
 					<xsd:enumeration value="OIDAsURI"/>
 					<xsd:enumeration value="OIDAsURN"/>
 				</xsd:restriction>
 			</xsd:simpleType>
 		
 
  • Enum Constant Details

    • OID_AS_URI

      public static final ObjectIdentifierQualifier OID_AS_URI
      Identifies object Identifier encoded as URI (e.g. 'http://test/public')
    • OID_AS_URN

      public static final ObjectIdentifierQualifier OID_AS_URN
      Identifies object Identifier encoded as URN (e.g. 'urn:oid:1.2.840.113549.1.9.16.6.3')
  • Method Details

    • values

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

      public static ObjectIdentifierQualifier 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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns XML value of the qualifier
      Returns:
      String value
    • fromValue

      public static ObjectIdentifierQualifier fromValue(String v)
      Returns an ObjectIdentifierQualifier instance from the given value
      Parameters:
      v - String value to get the ObjectIdentifierQualifier for
      Returns:
      ObjectIdentifierQualifier