本文整理汇总了Java中org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText类的典型用法代码示例。如果您正苦于以下问题:Java LocalizedText类的具体用法?Java LocalizedText怎么用?Java LocalizedText使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LocalizedText类属于org.eclipse.milo.opcua.stack.core.types.builtin包,在下文中一共展示了LocalizedText类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCallMeNode
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public static UaMethodNode createCallMeNode(final UShort index, final ServerNodeMap nodeMap) {
final UaMethodNode method = new UaMethodNode(
nodeMap,
new NodeId(index, "call-me-al"),
new QualifiedName(index, "Al"),
LocalizedText.english("Al"),
LocalizedText.english("Call me Al"),
UInteger.MIN, UInteger.MIN, true, true);
try {
final AnnotationBasedInvocationHandler handler = AnnotationBasedInvocationHandler
.fromAnnotatedObject(nodeMap, new CallMe());
method.setInputArguments(handler.getInputArguments());
method.setOutputArguments(handler.getOutputArguments());
method.setInvocationHandler(handler);
} catch (final Exception e) {
e.printStackTrace();
}
return method;
}
示例2: ReferenceTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public ReferenceTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean isAbstract,
boolean symmetric,
LocalizedText inverseName) {
super(nodeId, NodeClass.ReferenceType, browseName, displayName, description, writeMask, userWriteMask);
this.isAbstract = isAbstract;
this.symmetric = symmetric;
this.inverseName = inverseName;
}
示例3: NodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public NodeAttributes(NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask) {
this.nodeId = nodeId;
this.nodeClass = nodeClass;
this.browseName = browseName;
this.displayName = displayName;
this.description = description;
this.writeMask = writeMask;
this.userWriteMask = userWriteMask;
}
示例4: VariableTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public VariableTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
DataValue value,
NodeId dataType,
int valueRank,
UInteger[] arrayDimensions,
boolean isAbstract) {
super(nodeId, NodeClass.VariableType, browseName, displayName, description, writeMask, userWriteMask);
this.value = value;
this.dataType = dataType;
this.valueRank = valueRank;
this.arrayDimensions = arrayDimensions;
this.isAbstract = isAbstract;
}
示例5: buildNode8
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
private void buildNode8() {
UaVariableTypeNode node = new UaVariableTypeNode(this.nodeMap, NodeId.parse("ns=0;i=2138"), new QualifiedName(0, "ServerStatusType"), new LocalizedText("en", "ServerStatusType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0L), UInteger.valueOf(0L), new DataValue(Variant.NULL_VALUE), NodeId.parse("ns=0;i=862"), -1, new UInteger[]{}, false);
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=40"), ExpandedNodeId.parse("svr=0;i=2007"), NodeClass.Variable, false));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2139"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2140"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2141"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2142"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2752"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2753"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=45"), ExpandedNodeId.parse("svr=0;i=63"), NodeClass.VariableType, false));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2139"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2140"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2141"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2142"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2752"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2753"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2138"), NodeId.parse("ns=0;i=40"), ExpandedNodeId.parse("svr=0;i=2256"), NodeClass.Variable, false));
this.nodeMap.addNode(node);
}
示例6: decode
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
@Override
public VariableNode decode(UaDecoder decoder) throws UaSerializationException {
NodeId nodeId = decoder.readNodeId("NodeId");
NodeClass nodeClass = NodeClass.from(decoder.readInt32("NodeClass"));
QualifiedName browseName = decoder.readQualifiedName("BrowseName");
LocalizedText displayName = decoder.readLocalizedText("DisplayName");
LocalizedText description = decoder.readLocalizedText("Description");
UInteger writeMask = decoder.readUInt32("WriteMask");
UInteger userWriteMask = decoder.readUInt32("UserWriteMask");
ReferenceNode[] references =
decoder.readBuiltinStructArray(
"References",
ReferenceNode.class
);
Variant value = decoder.readVariant("Value");
NodeId dataType = decoder.readNodeId("DataType");
Integer valueRank = decoder.readInt32("ValueRank");
UInteger[] arrayDimensions = decoder.readArray("ArrayDimensions", decoder::readUInt32, UInteger.class);
UByte accessLevel = decoder.readByte("AccessLevel");
UByte userAccessLevel = decoder.readByte("UserAccessLevel");
Double minimumSamplingInterval = decoder.readDouble("MinimumSamplingInterval");
Boolean historizing = decoder.readBoolean("Historizing");
return new VariableNode(nodeId, nodeClass, browseName, displayName, description, writeMask, userWriteMask, references, value, dataType, valueRank, arrayDimensions, accessLevel, userAccessLevel, minimumSamplingInterval, historizing);
}
示例7: buildNode164
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
private void buildNode164() {
UaObjectNode node = new ServerDiagnosticsNode(this.nodeMap, NodeId.parse("ns=0;i=2274"), new QualifiedName(0, "ServerDiagnostics"), new LocalizedText("en", "ServerDiagnostics"), new LocalizedText("en", "Reports diagnostics about the server."), UInteger.valueOf(0L), UInteger.valueOf(0L), UByte.valueOf(0));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2253"), NodeClass.Object, false));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2275"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2289"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2290"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=3706"), NodeClass.Object, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=2294"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=40"), ExpandedNodeId.parse("svr=0;i=2020"), NodeClass.ObjectType, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2253"), NodeClass.Object, false));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2275"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2289"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=2290"), NodeClass.Variable, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=47"), ExpandedNodeId.parse("svr=0;i=3706"), NodeClass.Object, true));
node.addReference(new Reference(NodeId.parse("ns=0;i=2274"), NodeId.parse("ns=0;i=46"), ExpandedNodeId.parse("svr=0;i=2294"), NodeClass.Variable, true));
this.nodeMap.addNode(node);
}
示例8: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public static ReferenceTypeNodeAttributes fromGenerated(GeneratedUAReferenceType gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean isAbstract = gNode.isIsAbstract();
boolean symmetric = gNode.isSymmetric();
LocalizedText inverseName = gNode.getInverseName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
return new ReferenceTypeNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
isAbstract,
symmetric,
inverseName
);
}
示例9: VariableNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public VariableNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
DataValue value,
NodeId dataType,
int valueRank,
UInteger[] arrayDimensions,
UByte accessLevel,
UByte userAccessLevel,
Double minimumSamplingInterval,
boolean historizing) {
super(nodeId, NodeClass.Variable, browseName, displayName, description, writeMask, userWriteMask);
this.value = value;
this.dataType = dataType;
this.valueRank = valueRank;
this.arrayDimensions = arrayDimensions;
this.accessLevel = accessLevel;
this.userAccessLevel = userAccessLevel;
this.minimumSamplingInterval = minimumSamplingInterval;
this.historizing = historizing;
}
示例10: MethodNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public MethodNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean executable,
boolean userExecutable) {
super(nodeId, NodeClass.Method, browseName, displayName, description, writeMask, userWriteMask);
this.executable = executable;
this.userExecutable = userExecutable;
}
示例11: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public static MethodNodeAttributes fromGenerated(GeneratedUAMethod gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean executable = gNode.isExecutable();
boolean userExecutable = gNode.isUserExecutable();
return new MethodNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
executable,
userExecutable
);
}
示例12: DataTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public DataTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean isAbstract) {
super(nodeId, NodeClass.DataType, browseName, displayName, description, writeMask, userWriteMask);
this.isAbstract = isAbstract;
}
示例13: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public static DataTypeNodeAttributes fromGenerated(GeneratedUADataType gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean isAbstract = gNode.isIsAbstract();
return new DataTypeNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
isAbstract
);
}
示例14: ObjectTypeNodeAttributes
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public ObjectTypeNodeAttributes(
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
boolean isAbstract) {
super(nodeId, NodeClass.ObjectType, browseName, displayName, description, writeMask, userWriteMask);
this.isAbstract = isAbstract;
}
示例15: fromGenerated
import org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText; //导入依赖的package包/类
public static ObjectTypeNodeAttributes fromGenerated(GeneratedUAObjectType gNode) {
NodeId nodeId = NodeId.parse(gNode.getNodeId());
QualifiedName browseName = QualifiedName.parse(gNode.getBrowseName());
LocalizedText displayName = gNode.getDisplayName().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.english(browseName.getName()));
LocalizedText description = gNode.getDescription().stream()
.findFirst()
.map(gLocalizedText -> LocalizedText.english(gLocalizedText.getValue()))
.orElse(LocalizedText.NULL_VALUE);
UInteger writeMask = uint(gNode.getWriteMask());
UInteger userWriteMask = uint(gNode.getUserWriteMask());
boolean isAbstract = gNode.isIsAbstract();
return new ObjectTypeNodeAttributes(
nodeId,
browseName,
displayName,
description,
writeMask,
userWriteMask,
isAbstract
);
}