java.lang.Object
dev.jcputney.elearning.parser.input.lom.types.OrComposite
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Requirement

public sealed class OrComposite extends Object implements Serializable permits 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 Details

    • OrComposite

      public OrComposite()
      Constructs a new instance of the OrComposite class.

      This default constructor initializes an OrComposite object 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

      public SourceValuePair<Type> getType()
      Retrieves the type associated with the current object.
      Returns:
      a SourceValuePair containing the source and value of the type, where the value is an enumeration of Type.
    • setType

      public void setType(SourceValuePair<Type> type)
      Sets the type associated with the current object.
      Parameters:
      type - a SourceValuePair containing the source and value of the type, where the value is an enumeration of Type.
    • getName

      public SourceValuePair<Name> getName()
      Retrieves the name associated with the current object.
      Returns:
      a SourceValuePair containing the source and value of the name, where the value is an enumeration of Name.
    • setName

      public void setName(SourceValuePair<Name> name)
      Sets the name associated with the current object.
      Parameters:
      name - a SourceValuePair containing the source and value of the name, where the value is an enumeration of Name.
    • getMinimumVersion

      public String getMinimumVersion()
      Retrieves the minimum version associated with the current object.
      Returns:
      the minimum version as a String
    • setMinimumVersion

      public void setMinimumVersion(String minimumVersion)
      Sets the minimum version associated with the current object.
      Parameters:
      minimumVersion - the minimum version to set, represented as a String
    • getMaximumVersion

      public String getMaximumVersion()
      Retrieves the maximum version associated with the current object.
      Returns:
      the maximum version as a String
    • setMaximumVersion

      public void setMaximumVersion(String maximumVersion)
      Sets the maximum version associated with the current object.
      Parameters:
      maximumVersion - the maximum version to set, represented as a String
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object