Class EnumerationValuesInfoXsomParser
java.lang.Object
com.evolveum.midpoint.prism.impl.schema.features.EnumerationValuesInfoXsomParser
- All Implemented Interfaces:
DefinitionFeatureParser<List<EnumerationValuesInfoXsomParser.EnumValueInfo>,
com.sun.xml.xsom.XSType>
public class EnumerationValuesInfoXsomParser
extends Object
implements DefinitionFeatureParser<List<EnumerationValuesInfoXsomParser.EnumValueInfo>,com.sun.xml.xsom.XSType>
Collects values with their labels and documentation from XSD.
For example,
----
<xsd:restriction base="xsd:string">
<xsd:enumeration value="pegLeg">
<xsd:annotation>
<xsd:documentation>Pirate with a peg leg</xsd:documentation>
<xsd:appinfo>
<a:label>Peg Leg</a:label>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="hook"/>
</xsd:restriction>
----
Returns a list of records: (pegLeg, Peg Leg, Pirate with a peg leg) + (hook, null, null)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.schema.DefinitionFeatureParser
DefinitionFeatureParser.Marker<X>, DefinitionFeatureParser.NonNull<V,
X> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue
(@Nullable com.sun.xml.xsom.XSType xsType) Returns the value of the definition feature for the given (usually XSOM) source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.schema.DefinitionFeatureParser
applicableTo, getValueIfApplicable, restrictToSource
-
Constructor Details
-
EnumerationValuesInfoXsomParser
public EnumerationValuesInfoXsomParser()
-
-
Method Details
-
getValue
@Nullable public @Nullable List<EnumerationValuesInfoXsomParser.EnumValueInfo> getValue(@Nullable @Nullable com.sun.xml.xsom.XSType xsType) Description copied from interface:DefinitionFeatureParser
Returns the value of the definition feature for the given (usually XSOM) source. The source is intentionally nullable, because there are situations where this method is called with annotations that are often missing.- Specified by:
getValue
in interfaceDefinitionFeatureParser<List<EnumerationValuesInfoXsomParser.EnumValueInfo>,
com.sun.xml.xsom.XSType>
-