Class OrComposite
java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.OrComposite
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Requirement
Represents an
orComposite element in the LOM schema, defining a set of conditions
related to platform or software requirements. Each orComposite provides specific
information about the type, name, and version constraints for the required environment.
Schema snippet:
<xs:complexType name="orComposite">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="type"/>
<xs:group ref="name"/>
<xs:group ref="minimumVersion"/>
<xs:group ref="maximumVersion"/>
<xs:group ref="ex:customElements"/>
</xs:choice>
<xs:attributeGroup ref="ag:orComposite"/>
</xs:complexType>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the maximum version associated with the current object.Retrieves the minimum version associated with the current object.getName()Retrieves the name associated with the current object.getType()Retrieves the type associated with the current object.inthashCode()voidsetMaximumVersion(String maximumVersion) Sets the maximum version associated with the current object.voidsetMinimumVersion(String minimumVersion) Sets the minimum version associated with the current object.voidsetName(SourceValuePair<Name> name) Sets the name associated with the current object.voidsetType(SourceValuePair<Type> type) Sets the type associated with the current object.
-
Constructor Details
-
OrComposite
public OrComposite()Constructs a new instance of theOrCompositeclass.This default constructor initializes an
OrCompositeobject without setting any properties or performing additional logic. It primarily exists to allow the creation of an instance with no predefined state.
-
-
Method Details
-
getType
Retrieves the type associated with the current object.- Returns:
- a
SourceValuePaircontaining the source and value of the type, where the value is an enumeration ofType.
-
setType
Sets the type associated with the current object.- Parameters:
type- aSourceValuePaircontaining the source and value of the type, where the value is an enumeration ofType.
-
getName
Retrieves the name associated with the current object.- Returns:
- a
SourceValuePaircontaining the source and value of the name, where the value is an enumeration ofName.
-
setName
Sets the name associated with the current object.- Parameters:
name- aSourceValuePaircontaining the source and value of the name, where the value is an enumeration ofName.
-
getMinimumVersion
Retrieves the minimum version associated with the current object.- Returns:
- the minimum version as a String
-
setMinimumVersion
Sets the minimum version associated with the current object.- Parameters:
minimumVersion- the minimum version to set, represented as a String
-
getMaximumVersion
Retrieves the maximum version associated with the current object.- Returns:
- the maximum version as a String
-
setMaximumVersion
Sets the maximum version associated with the current object.- Parameters:
maximumVersion- the maximum version to set, represented as a String
-
equals
-
hashCode
public int hashCode()
-