Package org.eclipse.scanning.device
Class AbstractMetadataNode
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.device.AbstractMetadataNode
- All Implemented Interfaces:
INameable,MetadataNode
- Direct Known Subclasses:
AbstractMetadataField,GroupMetadataNode,LinkedField
A node that can be part of a metadata device.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAttributes(List<MetadataAttribute> attributes) voidprotected voidcreateAttributes(Node node) final NodeCreate and return the nexusNodefor this object.protected abstract Nodeprotected NodebooleanvoidremoveAttribute(String attrName) voidsetAttributes(List<MetadataAttribute> attributes) Methods inherited from class org.eclipse.scanning.api.AbstractNameable
equals, getName, hashCode, setName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.device.MetadataNode
isDefaultValue
-
Constructor Details
-
AbstractMetadataNode
protected AbstractMetadataNode() -
AbstractMetadataNode
-
-
Method Details
-
createNode
Description copied from interface:MetadataNodeCreate and return the nexusNodefor this object.- Specified by:
createNodein interfaceMetadataNode- Throws:
NexusException- if the node could not be created for any reason
-
handleError
- Throws:
NexusException
-
doCreateNode
- Throws:
NexusException
-
createAttributes
- Throws:
NexusException
-
addAttribute
-
addAttributes
-
removeAttribute
-
clearAttributes
public void clearAttributes() -
setAttributes
-
hasAttributes
public boolean hasAttributes()
-