|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.ModelParserBase
com.prosysopc.ua.server.ModelParser
public class ModelParser
An XML parser for UA Information Model files defined according to the respective schema,
http://opcfoundation.org/UA/2011/03/UANodeSet.xsd.
You can use NodeManagerTable#loadModel(URL, Collection, boolean) to read the files
instead of using the parser directly.
| Field Summary | |
|---|---|
static boolean |
callAfterCreateForTopLevelNodes
If this is set to true, then afterCreate will be called for top level nodes loaded from NodeSet2 XMLs. |
| Fields inherited from class com.prosysopc.ua.ModelParserBase |
|---|
UTF8_BOM |
| Constructor Summary | |
|---|---|
ModelParser(NodeManagerTable nodeManagerTable)
Creates a new ModelParser. |
|
| Method Summary | |
|---|---|
protected void |
addNamespaceUri(String uri)
|
protected void |
afterCreate(org.opcfoundation.ua.core.AddNodesItem item)
This method is called once for each Variable and Object node created. |
protected org.opcfoundation.ua.builtintypes.NodeId |
doAddNode(org.opcfoundation.ua.core.AddNodesItem item)
Add a new node to the address space |
protected void |
doAddReference(org.opcfoundation.ua.core.AddReferencesItem item)
Add a new reference to the address space |
protected org.opcfoundation.ua.common.NamespaceTable |
getNamespaceTable()
|
protected UaNode |
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Get an existing node in the address space. |
protected org.opcfoundation.ua.common.ServerTable |
getServerTable()
|
| Methods inherited from class com.prosysopc.ua.ModelParserBase |
|---|
addNodes, addReferences, characters, createModel, endElement, getEncoderContext, getErrorList, getIgnoredNodes, getNodes, getReferences, isFailOnFirstError, isIgnoredReference, isReadingExtensions, isReadingNamespaces, isSkipValuesOnAndroid, parseFile, parseFile, parseFile, setFailOnFirstError, setIgnoredNodes, setSkipValuesOnAndroid, startElement, toGlobalExpandedNodeId, toGlobalNodeId, toGlobalNodeId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean callAfterCreateForTopLevelNodes
| Constructor Detail |
|---|
public ModelParser(NodeManagerTable nodeManagerTable)
nodeManagerTable - the NodeManagerTable in which the nodes should be created.| Method Detail |
|---|
protected void addNamespaceUri(String uri)
addNamespaceUri in class ModelParserBaseprotected void afterCreate(org.opcfoundation.ua.core.AddNodesItem item)
ModelParserBase
afterCreate in class ModelParserBase
protected org.opcfoundation.ua.builtintypes.NodeId doAddNode(org.opcfoundation.ua.core.AddNodesItem item)
throws StatusException
ModelParserBase
doAddNode in class ModelParserBaseitem -
StatusException
protected void doAddReference(org.opcfoundation.ua.core.AddReferencesItem item)
throws StatusException
ModelParserBase
doAddReference in class ModelParserBaseitem -
StatusExceptionprotected org.opcfoundation.ua.common.NamespaceTable getNamespaceTable()
getNamespaceTable in class ModelParserBase
protected UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws StatusException
ModelParserBase
getNode in class ModelParserBaseStatusExceptionprotected org.opcfoundation.ua.common.ServerTable getServerTable()
getServerTable in class ModelParserBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||