Package eu.europa.esig.dss.enumerations
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 Summary
Enum Constants Enum Constant Description OID_AS_URIIdentifies object Identifier encoded as URI (e.g.OID_AS_URNIdentifies object Identifier encoded as URN (e.g.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectIdentifierQualifierfromValue(String v)Returns anObjectIdentifierQualifierinstance from the given valueStringgetValue()Returns XML value of the qualifierstatic ObjectIdentifierQualifiervalueOf(String name)Returns the enum constant of this type with the specified name.static ObjectIdentifierQualifier[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ObjectIdentifierQualifier[] 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 (ObjectIdentifierQualifier c : ObjectIdentifierQualifier.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
fromValue
public static ObjectIdentifierQualifier fromValue(String v)
Returns anObjectIdentifierQualifierinstance from the given value- Parameters:
v-Stringvalue to get theObjectIdentifierQualifierfor- Returns:
ObjectIdentifierQualifier
-
-