Utilities for manipulating external representations of data structures in OpenSim
More...
|
static bool | ExecuteReadProcessors< NodeType > (NodeType nodeToFill, Dictionary< string, Action< NodeType, XmlReader >> processors, XmlReader xtr) |
| Populate a node with data read from xml using a dictinoary of processors More...
|
|
static bool | ExecuteReadProcessors< NodeType > (NodeType nodeToFill, Dictionary< string, Action< NodeType, XmlReader >> processors, XmlReader xtr, Action< NodeType, string, Exception > parseExceptionAction) |
| Populate a node with data read from xml using a dictinoary of processors More...
|
|
static string | RewriteSOP_Old (string xml, string homeURL, IUserAccountService userService, UUID scopeID) |
| Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it. More...
|
|
static string | RewriteSOP (string xmlData, string sceneName, string homeURL, IUserAccountService userService, UUID scopeID) |
| Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it. More...
|
|
static string | CalcCreatorData (string homeURL, string name) |
|
static string | SanitizeXml (string xmlData) |
| Sanitation for bug introduced in Oct. 20 (1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8) More...
|
|
Utilities for manipulating external representations of data structures in OpenSim
Definition at line 43 of file ExternalRepresentationUtils.cs.
static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.CalcCreatorData |
( |
string |
homeURL, |
|
|
string |
name |
|
) |
| |
|
inlinestatic |
static bool OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors< NodeType > |
( |
NodeType |
nodeToFill, |
|
|
Dictionary< string, Action< NodeType, XmlReader >> |
processors, |
|
|
XmlReader |
xtr |
|
) |
| |
|
inlinestatic |
Populate a node with data read from xml using a dictinoary of processors
- Parameters
-
nodeToFill | |
processors | |
xtr | |
- Returns
- true on successful, false if there were any processing failures
Definition at line 54 of file ExternalRepresentationUtils.cs.
static bool OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.ExecuteReadProcessors< NodeType > |
( |
NodeType |
nodeToFill, |
|
|
Dictionary< string, Action< NodeType, XmlReader >> |
processors, |
|
|
XmlReader |
xtr, |
|
|
Action< NodeType, string, Exception > |
parseExceptionAction |
|
) |
| |
|
inlinestatic |
Populate a node with data read from xml using a dictinoary of processors
- Parameters
-
nodeToFill | |
processors | |
xtr | |
parseExceptionAction | Action to take if there is a parsing problem. This will usually just be to log the exception |
- Returns
- true on successful, false if there were any processing failures
Definition at line 77 of file ExternalRepresentationUtils.cs.
static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.RewriteSOP |
( |
string |
xmlData, |
|
|
string |
sceneName, |
|
|
string |
homeURL, |
|
|
IUserAccountService |
userService, |
|
|
UUID |
scopeID |
|
) |
| |
|
inlinestatic |
Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it.
- Parameters
-
xml | The SceneObjectPart represented in XML2 |
sceneName | An identifier for the component that's calling this function |
homeURL | The URL of the user agents service (home) for the creator |
userService | The service for retrieving user account information |
scopeID | The scope of the user account information (Grid ID) |
- Returns
- The SceneObjectPart represented in XML2
Definition at line 211 of file ExternalRepresentationUtils.cs.
static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.RewriteSOP_Old |
( |
string |
xml, |
|
|
string |
homeURL, |
|
|
IUserAccountService |
userService, |
|
|
UUID |
scopeID |
|
) |
| |
|
inlinestatic |
Takes a XML representation of a SceneObjectPart and returns another XML representation with creator data added to it.
- Parameters
-
xml | The SceneObjectPart represented in XML2 |
homeURL | The URL of the user agents service (home) for the creator |
userService | The service for retrieving user account information |
scopeID | The scope of the user account information (Grid ID) |
- Returns
- The SceneObjectPart represented in XML2
Definition at line 153 of file ExternalRepresentationUtils.cs.
static string OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.SanitizeXml |
( |
string |
xmlData | ) |
|
|
inlinestatic |
Sanitation for bug introduced in Oct. 20 (1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8)
- Parameters
-
- Returns
Definition at line 400 of file ExternalRepresentationUtils.cs.
static void OpenSim.Framework.Serialization.External.ExternalRepresentationUtils.TransformXml |
( |
XmlReader |
reader, |
|
|
XmlWriter |
writer, |
|
|
string |
sceneName, |
|
|
string |
homeURI, |
|
|
IUserAccountService |
userAccountService, |
|
|
UUID |
scopeID |
|
) |
| |
|
inlinestaticprotected |
The documentation for this class was generated from the following file: