Lines Matching refs:XmlElement

64 XmlElement::XmlAttributeNode::XmlAttributeNode (const XmlAttributeNode& other) noexcept  in XmlAttributeNode()
70 XmlElement::XmlAttributeNode::XmlAttributeNode (const Identifier& n, const String& v) noexcept in XmlAttributeNode()
76 XmlElement::XmlAttributeNode::XmlAttributeNode (String::CharPointerType nameStart, String::CharPoin… in XmlAttributeNode()
83 XmlElement::XmlElement (const String& tag) in XmlElement() function in water::XmlElement
89 XmlElement::XmlElement (const char* tag) in XmlElement() function in water::XmlElement
95 XmlElement::XmlElement (StringRef tag) in XmlElement() function in water::XmlElement
101 XmlElement::XmlElement (const Identifier& tag) in XmlElement() function in water::XmlElement
107 XmlElement::XmlElement (String::CharPointerType tagNameStart, String::CharPointerType tagNameEnd) in XmlElement() function in water::XmlElement
113 XmlElement::XmlElement (int /*dummy*/) noexcept in XmlElement() function in water::XmlElement
117 XmlElement::XmlElement (const XmlElement& other) in XmlElement() function in water::XmlElement
123 XmlElement& XmlElement::operator= (const XmlElement& other) in operator =()
137 XmlElement::XmlElement (XmlElement&& other) noexcept in XmlElement() function in water::XmlElement
138 : nextListItem (static_cast<LinkedListPointer<XmlElement>&&> (other.nextListItem)), in XmlElement()
139 firstChildElement (static_cast<LinkedListPointer<XmlElement>&&> (other.firstChildElement)), in XmlElement()
145 XmlElement& XmlElement::operator= (XmlElement&& other) noexcept in operator =()
152 nextListItem = static_cast<LinkedListPointer<XmlElement>&&> (other.nextListItem); in operator =()
153 firstChildElement = static_cast<LinkedListPointer<XmlElement>&&> (other.firstChildElement); in operator =()
161 void XmlElement::copyChildrenAndAttributesFrom (const XmlElement& other) in copyChildrenAndAttributesFrom()
170 XmlElement::~XmlElement() noexcept in ~XmlElement()
268 void XmlElement::writeElementAsText (OutputStream& outputStream, in writeElementAsText()
313 … for (XmlElement* child = firstChildElement; child != nullptr; child = child->nextListItem) in writeElementAsText()
352 String XmlElement::createDocument (StringRef dtdToUse, in createDocument()
364 void XmlElement::writeToStream (OutputStream& output, in writeToStream()
402 bool XmlElement::writeToFile (const File& file,
428 bool XmlElement::hasTagName (StringRef possibleTagName) const noexcept in hasTagName()
439 String XmlElement::getNamespace() const in getNamespace()
444 String XmlElement::getTagNameWithoutNamespace() const in getTagNameWithoutNamespace()
449 bool XmlElement::hasTagNameIgnoringNamespace (StringRef possibleTagName) const in hasTagNameIgnoringNamespace()
454 XmlElement* XmlElement::getNextElementWithTagName (StringRef requiredTagName) const in getNextElementWithTagName()
456 XmlElement* e = nextListItem; in getNextElementWithTagName()
465 int XmlElement::getNumAttributes() const noexcept in getNumAttributes()
476 const String& XmlElement::getAttributeName (const int index) const noexcept in getAttributeName()
484 const String& XmlElement::getAttributeValue (const int index) const noexcept in getAttributeValue()
492 XmlElement::XmlAttributeNode* XmlElement::getAttribute (StringRef attributeName) const noexcept in getAttribute()
501 bool XmlElement::hasAttribute (StringRef attributeName) const noexcept in hasAttribute()
507 const String& XmlElement::getStringAttribute (StringRef attributeName) const noexcept in getStringAttribute()
515 String XmlElement::getStringAttribute (StringRef attributeName, const String& defaultReturnValue) c… in getStringAttribute()
523 int XmlElement::getIntAttribute (StringRef attributeName, const int defaultReturnValue) const in getIntAttribute()
531 double XmlElement::getDoubleAttribute (StringRef attributeName, const double defaultReturnValue) co… in getDoubleAttribute()
539 bool XmlElement::getBoolAttribute (StringRef attributeName, const bool defaultReturnValue) const in getBoolAttribute()
555 bool XmlElement::compareAttribute (StringRef attributeName, in compareAttribute()
567 void XmlElement::setAttribute (const Identifier& attributeName, const String& value) in setAttribute()
592 void XmlElement::setAttribute (const Identifier& attributeName, const int number) in setAttribute()
597 void XmlElement::setAttribute (const Identifier& attributeName, const double number) in setAttribute()
602 void XmlElement::removeAttribute (const Identifier& attributeName) noexcept in removeAttribute()
616 void XmlElement::removeAllAttributes() noexcept in removeAllAttributes()
622 int XmlElement::getNumChildElements() const noexcept in getNumChildElements()
627 XmlElement* XmlElement::getChildElement (const int index) const noexcept in getChildElement()
632 XmlElement* XmlElement::getChildByName (StringRef childName) const noexcept in getChildByName()
636 for (XmlElement* child = firstChildElement; child != nullptr; child = child->nextListItem) in getChildByName()
643 XmlElement* XmlElement::getChildByAttribute (StringRef attributeName, StringRef attributeValue) con… in getChildByAttribute()
647 for (XmlElement* child = firstChildElement; child != nullptr; child = child->nextListItem) in getChildByAttribute()
654 void XmlElement::addChildElement (XmlElement* const newNode) noexcept in addChildElement()
665 void XmlElement::insertChildElement (XmlElement* const newNode, int indexToInsertAt) noexcept in insertChildElement()
676 void XmlElement::prependChildElement (XmlElement* newNode) noexcept in prependChildElement()
687 XmlElement* XmlElement::createNewChildElement (StringRef childTagName) in createNewChildElement()
689 XmlElement* const newElement = new XmlElement (childTagName); in createNewChildElement()
694 bool XmlElement::replaceChildElement (XmlElement* const currentChildElement, in replaceChildElement()
695 XmlElement* const newNode) noexcept in replaceChildElement()
699 …if (LinkedListPointer<XmlElement>* const p = firstChildElement.findPointerTo (currentChildElement)) in replaceChildElement()
711 void XmlElement::removeChildElement (XmlElement* const childToRemove, in removeChildElement()
723 bool XmlElement::isEquivalentTo (const XmlElement* const other, in isEquivalentTo()
772 const XmlElement* thisChild = firstChildElement; in isEquivalentTo()
773 const XmlElement* otherChild = other->firstChildElement; in isEquivalentTo()
796 void XmlElement::deleteAllChildElements() noexcept in deleteAllChildElements()
801 void XmlElement::deleteAllChildElementsWithTagName (StringRef name) noexcept in deleteAllChildElementsWithTagName()
803 for (XmlElement* child = firstChildElement; child != nullptr;) in deleteAllChildElementsWithTagName()
805 XmlElement* const nextChild = child->nextListItem; in deleteAllChildElementsWithTagName()
814 bool XmlElement::containsChildElement (const XmlElement* const possibleChild) const noexcept in containsChildElement()
819 XmlElement* XmlElement::findParentElementOf (const XmlElement* const elementToLookFor) noexcept in findParentElementOf()
824 for (XmlElement* child = firstChildElement; child != nullptr; child = child->nextListItem) in findParentElementOf()
829 if (XmlElement* const found = child->findParentElementOf (elementToLookFor)) in findParentElementOf()
836 void XmlElement::getChildElementsAsArray (XmlElement** elems) const noexcept in getChildElementsAsArray()
841 void XmlElement::reorderChildElements (XmlElement** const elems, const int num) noexcept in reorderChildElements()
843 XmlElement* e = firstChildElement = elems[0]; in reorderChildElements()
855 bool XmlElement::isTextElement() const noexcept in isTextElement()
865 const String& XmlElement::getText() const noexcept in getText()
874 void XmlElement::setText (const String& newText) in setText()
880 String XmlElement::getAllSubText() const in getAllSubText()
890 for (const XmlElement* child = firstChildElement; child != nullptr; child = child->nextListItem) in getAllSubText()
896 String XmlElement::getChildElementAllSubText (StringRef childTagName, const String& defaultReturnVa… in getChildElementAllSubText()
898 if (const XmlElement* const child = getChildByName (childTagName)) in getChildElementAllSubText()
904 XmlElement* XmlElement::createTextElement (const String& text) in createTextElement()
906 XmlElement* const e = new XmlElement ((int) 0); in createTextElement()
911 bool XmlElement::isValidXmlName (StringRef text) noexcept in isValidXmlName()
926 void XmlElement::addTextElement (const String& text) in addTextElement()
931 void XmlElement::deleteAllTextElements() noexcept in deleteAllTextElements()
933 for (XmlElement* child = firstChildElement; child != nullptr;) in deleteAllTextElements()
935 XmlElement* const next = child->nextListItem; in deleteAllTextElements()