com.prosysopc.ua.server
Class StructureInfo

java.lang.Object
  extended by com.prosysopc.ua.server.StructureInfo

public class StructureInfo
extends Object


Method Summary
 Class<?> getFieldJavaClass(String field)
           
 Set<String> getFields()
          Get all Fields of this Structure.
 Object getFieldValue(org.opcfoundation.ua.builtintypes.Structure s, String fieldName)
          Get field value from a Structure
 Map<String,Object> getSubComponents(org.opcfoundation.ua.builtintypes.Structure s)
           
 boolean setFieldValue(org.opcfoundation.ua.builtintypes.Structure s, String fieldName, Object newValue)
          Write value for a Structure field
 void setSubComponents(org.opcfoundation.ua.builtintypes.Structure s, Map<String,Object> values)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFieldJavaClass

public Class<?> getFieldJavaClass(String field)

getFields

public Set<String> getFields()
Get all Fields of this Structure. Read-only.


getFieldValue

public Object getFieldValue(org.opcfoundation.ua.builtintypes.Structure s,
                            String fieldName)
Get field value from a Structure

Parameters:
s - the Structure
fieldName - the field name
Returns:
the field value, or null if it does not exist (or the field contains null)

getSubComponents

public Map<String,Object> getSubComponents(org.opcfoundation.ua.builtintypes.Structure s)

setFieldValue

public boolean setFieldValue(org.opcfoundation.ua.builtintypes.Structure s,
                             String fieldName,
                             Object newValue)
Write value for a Structure field

Parameters:
s - the structure
fieldName - the field
newValue - the new value for the field
Returns:
true if writing success, false otherwise

setSubComponents

public void setSubComponents(org.opcfoundation.ua.builtintypes.Structure s,
                             Map<String,Object> values)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.