Package org.w3c.dom.mathml
Interface MathMLDeclareElement
- All Superinterfaces:
Element,MathMLContentElement,MathMLElement,Node
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.
-
Field Summary
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Method Summary
Modifier and TypeMethodDescriptionAn optional MathMLElement providing an initial value for the object being declared.A URI specifying the detailed semantics of the element.A description of the syntax used in definitionURL.A MathMLCiElement representing the name being declared.intgetNargs()If the identifier is a function, this attribute specifies the number of arguments the function takes.A string with the values prefix, infix, postfix, or function-model.getType()A string indicating the type of the identifier.voidsetConstructor(MathMLElement constructor) setter for the constructor attribute.voidsetDefinitionURL(String definitionURL) setter for the definitionURL attribute.voidsetEncoding(String encoding) setter for the encoding attribute.voidsetIdentifier(MathMLCiElement identifier) setter for the identifier attribute.voidsetNargs(int nargs) setter for the nargs attribute.voidsetOccurrence(String occurrence) setter for the occurrence attribute.voidsetter for the type attribute.Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.mathml.MathMLElement
getClassName, getHref, getId, getMathElementStyle, getOwnerMathElement, getXref, setClassName, setHref, setId, setMathElementStyle, setXrefMethods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
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
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
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
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
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
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
setter for the constructor attribute.- Parameters:
constructor- new value for constructor.- See Also:
-