Method | Description | |
---|---|---|
AddChild ( |
Add a child to this tag
|
|
AddValue ( object value ) : void |
Add a value to this tag
|
|
Equals ( object obj ) : bool |
Tests for equality using
|
|
GetAttributesForNamespace ( string sdlNamespace ) : object>.IDictionary |
Returns all attributes in the given namespace.
|
|
GetChild ( string childName ) : |
Get the first child with the given name. The search is not recursive.
|
|
GetChild ( string childName, bool recursive ) : |
Get the first child with the given name, optionally using a recursive search.
|
|
GetChildren ( bool recursively ) : IList |
Get all the children of this tag optionally recursing through all descendents.
|
|
GetChildren ( string childName ) : IList |
Get all children with the given name. The search is not recursive.
|
|
GetChildren ( string childName, bool recursive ) : IList |
Get all the children with the given name (optionally searching descendants recursively)
|
|
GetChildrenForNamespace ( string sdlNamespace ) : IList |
Get all children in the given namespace. The search is not recursive.
|
|
GetChildrenForNamespace ( string sdlNamespace, bool recursive ) : IList |
Get all the children in the given namespace (optionally searching descendants recursively)
|
|
GetChildrenValues ( String name ) : IList |
Get the values for all children with the given name. If the child has more than one value, all the values will be added as a list. If the child has no value, null will be added. The search is not recursive.
|
|
GetHashCode ( ) : int |
Generates a hashcode using
|
|
Read ( TextReader reader ) : |
Add all the tags specified in the given Reader to this Tag.
|
|
ReadFile ( String file ) : |
Add all the tags specified in the given file to this Tag.
|
|
ReadString ( String text ) : |
Add all the tags specified in the given String to this Tag.
|
|
ReadURL ( String url ) : |
Add all the tags specified in the file at the given URL to this Tag.
|
|
RemoveChild ( |
Remove a child from this tag
|
|
RemoveValue ( object value ) : bool |
Remove a child from this tag
|
|
Tag ( string name ) : System |
Create an empty tag with a name and no namespace
|
|
Tag ( string sdlNamespace, string name ) : System |
Create a tag with the given namespace and name
|
|
ToString ( ) : string |
Produces a full SDL "dump" of this tag. The output is valid SDL.
|
|
ToXMLString ( ) : string |
Returns a string containing an XML representation of this tag. Values will be represented using _val0, _val1, etc.
|
|
Write ( |
Write this tag out to the given writer (optionally clipping the root.)
|
|
WriteFile ( string file ) : void |
Write this tag out to the given file.
|
|
WriteFile ( string file, bool includeRoot ) : void |
Write this tag out to the given file (optionally clipping the root.)
|
|
this ( int index ) : object |
An indexer for the tag's values
|
|
this ( string key ) : object |
An indexer for the tag's attributes. This indexer sets the attribute's namespace to an empty string ("")
|
|
this ( string sdlNamespace, string key ) : object |
Set the
|
Method | Description | |
---|---|---|
ToString ( String linePrefix ) : string |
Produces a full SDL "dump" of this tag using the given prefix before each line.
|
|
ToXMLString ( string linePrefix ) : String |
Returns a string containing an XML representation of this tag. Values will be represented using _val0, _val1, etc.
|
public AddChild ( |
||
child | The child to add | |
return | void |
public AddValue ( object value ) : void | ||
value | object | The value to add |
return | void |
public Equals ( object obj ) : bool | ||
obj | object | The object to test |
return | bool |
public GetAttributesForNamespace ( string sdlNamespace ) : object>.IDictionary |
||
sdlNamespace | string | The namespace to search |
return | object>.IDictionary |
public GetChild ( string childName ) : |
||
childName | string | The name of the child Tag |
return |
public GetChild ( string childName, bool recursive ) : |
||
childName | string | The name of the child Tag |
recursive | bool | If the search should be recursive |
return |
public GetChildren ( bool recursively ) : IList |
||
recursively | bool | If true, recurse through all descendents /// |
return | IList |
public GetChildren ( string childName ) : IList |
||
childName | string | The name of the children to fetch |
return | IList |
public GetChildren ( string childName, bool recursive ) : IList |
||
childName | string | The name of the children to fetch |
recursive | bool | If true search all descendents |
return | IList |
public GetChildrenForNamespace ( string sdlNamespace ) : IList |
||
sdlNamespace | string | |
return | IList |
public GetChildrenForNamespace ( string sdlNamespace, bool recursive ) : IList |
||
sdlNamespace | string | The namespace of the children to /// fetch |
recursive | bool | If true search all descendents |
return | IList |
public GetChildrenValues ( String name ) : IList | ||
name | String | The name of the children from which values are /// retrieved |
return | IList |
public Read ( TextReader reader ) : |
||
reader | TextReader | A reader containing SDL source |
return |
public ReadFile ( String file ) : |
||
file | String | A UTF8 encoded .sdl file |
return |
public ReadString ( String text ) : |
||
text | String | An SDL string |
return |
public ReadURL ( String url ) : |
||
url | String | url A UTF8 encoded .sdl file |
return |
public RemoveChild ( |
||
child | The child to remove | |
return | bool |
public Tag ( string name ) : System | ||
name | string | The name of this tag |
return | System |
public Tag ( string sdlNamespace, string name ) : System | ||
sdlNamespace | string | The namespace for this tag. null will /// be coerced to the empty string("") |
name | string | The name for this tag |
return | System |
public Write ( |
||
writer | The writer to which we will write this tag /// | |
includeRoot | bool | If true this tag will be written out as /// the root element, if false only the children will be written |
return | void |
public WriteFile ( string file ) : void | ||
file | string | The file path to which we will write the children /// of this tag. |
return | void |
public WriteFile ( string file, bool includeRoot ) : void | ||
file | string | The file path to which we will write this tag /// |
includeRoot | bool | If true this tag will be included in the /// file as the root element, if false only the children will be written /// |
return | void |
public this ( int index ) : object | ||
index | int | The |
return | object |
public this ( string key ) : object | ||
key | string | The key for this attribute |
return | object |
public this ( string sdlNamespace, string key ) : object | ||
sdlNamespace | string | The namespace for this attribute |
key | string | The key for this attribute |
return | object |