public class ModelParser extends ModelParserBase
You can use NodeManagerTable#loadModel(URL, Collection, boolean) to read the files
instead of using the parser directly.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
callAfterCreateForTopLevelNodes
If this is set to true, then afterCreate will be called for top level nodes loaded from
NodeSet2 XMLs.
|
UTF8_BOM| Constructor and Description |
|---|
ModelParser(NodeManagerTable nodeManagerTable)
Creates a new ModelParser.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNamespaceUri(String uri) |
protected void |
afterCreate(AddNodesItem item)
This method is called once for each Variable and Object node created.
|
protected NodeId |
doAddNode(AddNodesItem item)
Add a new node to the address space.
|
protected void |
doAddReference(AddReferencesItem item)
Add a new reference to the address space.
|
protected UaNode |
getNode(NodeId nodeId)
Get an existing node in the address space.
|
addNodes, addReferences, characters, createModel, endElement, getEncoderContext, getErrorList, getIgnoredNodes, getNamespaceTable, getNodes, getReferences, getServerTable, isFailOnFirstError, isIgnoredReference, isReadingExtensions, isReadingNamespaces, isSkipValuesOnAndroid, parseFile, parseFile, parseFile, setFailOnFirstError, setIgnoredNodes, setSkipValuesOnAndroid, startElement, toGlobalExpandedNodeId, toGlobalNodeId, toGlobalNodeIdpublic static boolean callAfterCreateForTopLevelNodes
public ModelParser(NodeManagerTable nodeManagerTable)
nodeManagerTable - the NodeManagerTable in which the nodes should be created.protected void addNamespaceUri(String uri)
addNamespaceUri in class ModelParserBaseprotected void afterCreate(AddNodesItem item)
ModelParserBaseafterCreate in class ModelParserBaseprotected NodeId doAddNode(AddNodesItem item) throws StatusException
ModelParserBasedoAddNode in class ModelParserBaseitem - the definition of the new node.StatusException - on failureprotected void doAddReference(AddReferencesItem item) throws StatusException
ModelParserBasedoAddReference in class ModelParserBaseitem - definition of the new reference.StatusException - on failure.protected UaNode getNode(NodeId nodeId) throws StatusException
ModelParserBasegetNode in class ModelParserBaseStatusExceptionCopyright © 2026. All rights reserved.