North State Framework in C#
V3.0.0
An object-oriented framework for implementing UML state machines.
|
Represents an xml element in an xml document. More...
Public Member Functions | |
NSFXMLElement () | |
Creates an xml element. More... | |
NSFXMLElement (NSFString tag) | |
Creates an xml element. More... | |
NSFXMLElement (NSFString tag, NSFString text) | |
Creates an xml element. More... | |
NSFXMLElement (NSFXMLElement copyElement) | |
Creates an xml element. More... | |
void | addChildElementBack (NSFXMLElement childElement) |
Adds an element to the back of the child element list. More... | |
void | addChildElementFront (NSFXMLElement childElement) |
Adds an element to the front of the child element list. More... | |
bool | containsChildElement () |
Checks if the element contains any child elements. More... | |
bool | containsChildElement (NSFString childTag) |
Checks if the element contains any child elements with the specified tag. More... | |
void | deleteChildElement (NSFXMLElement childElement) |
Deletes the specified child element. More... | |
bool | deleteChildElementBack () |
Deletes the element at the back of the child element list. More... | |
bool | deleteChildElementFront () |
Deletes the element at the front of the child element list. More... | |
NSFXMLElement | getChildElement (NSFString childTag) |
Gets the first child element with the specified tag. More... | |
NSFXMLElement | getChildElementBack () |
Gets the last child element. More... | |
NSFXMLElement | getChildElementFront () |
Gets the first child element. More... | |
NSFXMLElement | getNextElement (NSFXMLElement childElement) |
Gets the next child element after the specified child element. More... | |
NSFXMLElement | getNextElement (NSFXMLElement childElement, NSFString nextTag) |
Gets the next child element after the specified child element, with the specified tag. More... | |
int | getNumberOfChildElements () |
Gets the number of child elements More... | |
NSFXMLElement | getParentElement () |
Gets the parent element. More... | |
NSFXMLElement | getParentElement (NSFString parentTag) |
Gets the first parent element with the specified tag. More... | |
bool | loadBuffer (NSFString buffer) |
Loads the element data from a string buffer. The buffer must be in valid XML format. More... | |
void | save (StreamWriter stream) |
Saves the element to the specified stream. More... | |
Properties | |
NSFString | Tag [get, set] |
NSFString | Text [get, set] |
Represents an xml element in an xml document.
This is a companion class to NSFXMLDocument.
NSFXMLElement | ( | ) |
Creates an xml element.
NSFXMLElement | ( | NSFString | tag | ) |
Creates an xml element.
tag | The tag for the element. |
NSFXMLElement | ( | NSFString | tag, |
NSFString | text | ||
) |
Creates an xml element.
tag | The tag for the element. |
text | The text for the element. |
NSFXMLElement | ( | NSFXMLElement | copyElement | ) |
Creates an xml element.
copyElement | The element to copy. |
void addChildElementBack | ( | NSFXMLElement | childElement | ) |
Adds an element to the back of the child element list.
void addChildElementFront | ( | NSFXMLElement | childElement | ) |
Adds an element to the front of the child element list.
bool containsChildElement | ( | ) |
Checks if the element contains any child elements.
bool containsChildElement | ( | NSFString | childTag | ) |
Checks if the element contains any child elements with the specified tag.
childTag | The child element tag. |
void deleteChildElement | ( | NSFXMLElement | childElement | ) |
Deletes the specified child element.
childElement | The element to delete. |
bool deleteChildElementBack | ( | ) |
Deletes the element at the back of the child element list.
bool deleteChildElementFront | ( | ) |
Deletes the element at the front of the child element list.
NSFXMLElement getChildElement | ( | NSFString | childTag | ) |
Gets the first child element with the specified tag.
childTag | The child element to tag. |
NSFXMLElement getChildElementBack | ( | ) |
Gets the last child element.
NSFXMLElement getChildElementFront | ( | ) |
Gets the first child element.
NSFXMLElement getNextElement | ( | NSFXMLElement | childElement | ) |
Gets the next child element after the specified child element.
childElement | The child element before the returned child element. |
NSFXMLElement getNextElement | ( | NSFXMLElement | childElement, |
NSFString | nextTag | ||
) |
Gets the next child element after the specified child element, with the specified tag.
childElement | The child element before the returned child element. |
nextTag | The child element tag. |
int getNumberOfChildElements | ( | ) |
Gets the number of child elements
NSFXMLElement getParentElement | ( | ) |
Gets the parent element.
NSFXMLElement getParentElement | ( | NSFString | parentTag | ) |
Gets the first parent element with the specified tag.
parentTag | The parent element tag. |
bool loadBuffer | ( | NSFString | buffer | ) |
Loads the element data from a string buffer. The buffer must be in valid XML format.
void save | ( | StreamWriter | stream | ) |
Saves the element to the specified stream.
stream | The stream. |
|
getset |
|
getset |