Package eu.europa.esig.dss.enumerations
Enum Class ObjectIdentifierQualifier
- All Implemented Interfaces:
Serializable
,Comparable<ObjectIdentifierQualifier>
,Constable
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>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIdentifies object Identifier encoded as URI (e.g.Identifies object Identifier encoded as URN (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectIdentifierQualifier
Returns anObjectIdentifierQualifier
instance from the given valuegetValue()
Returns XML value of the qualifierstatic ObjectIdentifierQualifier
Returns the enum constant of this class with the specified name.static ObjectIdentifierQualifier[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OID_AS_URI
Identifies object Identifier encoded as URI (e.g. 'http://test/public') -
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
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
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 nameNullPointerException
- if the argument is null
-
getValue
-
fromValue
Returns anObjectIdentifierQualifier
instance from the given value- Parameters:
v
-String
value to get theObjectIdentifierQualifier
for- Returns:
ObjectIdentifierQualifier
-