Interface MathMLDeclareElement

All Superinterfaces:
Element, MathMLContentElement, MathMLElement, Node

public interface MathMLDeclareElement extends MathMLContentElement
The declare construct has two primary roles. The first is to change or set the default attribute values for a specific mathematical object. The second is to establish an association between a name and an object.
  • Method Details

    • getType

      String getType()
      A string indicating the type of the identifier. It must be compatible with the type of the constructor, if a constructor is present. The type is inferred from the constructor if present, otherwise it must be specified.
      Returns:
      value of the type attribute.
    • setType

      void setType(String type)
      setter for the type attribute.
      Parameters:
      type - new value for type.
      See Also:
    • getNargs

      int getNargs()
      If the identifier is a function, this attribute specifies the number of arguments the function takes. This represents the declare element's nargs attribute; see .
      Returns:
      value of the nargs attribute.
    • setNargs

      void setNargs(int nargs)
      setter for the nargs attribute.
      Parameters:
      nargs - new value for nargs.
      See Also:
    • getOccurrence

      String getOccurrence()
      A string with the values prefix, infix, postfix, or function-model.
      Returns:
      value of the occurrence attribute.
    • setOccurrence

      void setOccurrence(String occurrence)
      setter for the occurrence attribute.
      Parameters:
      occurrence - new value for occurrence.
      See Also:
    • getDefinitionURL

      String getDefinitionURL()
      A URI specifying the detailed semantics of the element.
      Returns:
      value of the definitionURL attribute.
    • setDefinitionURL

      void setDefinitionURL(String definitionURL)
      setter for the definitionURL attribute.
      Parameters:
      definitionURL - new value for definitionURL.
      See Also:
    • getEncoding

      String getEncoding()
      A description of the syntax used in definitionURL.
      Returns:
      value of the encoding attribute.
    • setEncoding

      void setEncoding(String encoding)
      setter for the encoding attribute.
      Parameters:
      encoding - new value for encoding.
      See Also:
    • getIdentifier

      MathMLCiElement getIdentifier()
      A MathMLCiElement representing the name being declared.
      Returns:
      value of the identifier attribute.
    • setIdentifier

      void setIdentifier(MathMLCiElement identifier)
      setter for the identifier attribute.
      Parameters:
      identifier - new value for identifier.
      See Also:
    • getConstructor

      MathMLElement getConstructor()
      An optional MathMLElement providing an initial value for the object being declared.
      Returns:
      value of the constructor attribute.
    • setConstructor

      void setConstructor(MathMLElement constructor)
      setter for the constructor attribute.
      Parameters:
      constructor - new value for constructor.
      See Also: