Package eu.europa.esig.dss.enumerations
Enum ObjectIdentifierQualifier
- All Implemented Interfaces:
Serializable
,Comparable<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 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 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 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getValue
Returns XML value of the qualifier- Returns:
String
value
-
fromValue
Returns anObjectIdentifierQualifier
instance from the given value- Parameters:
v
-String
value to get theObjectIdentifierQualifier
for- Returns:
ObjectIdentifierQualifier
-