Class GenericElement.GenericElementBuilder<T extends GenericElement.GenericElementBuilder>
- java.lang.Object
-
- org.opennms.netmgt.graph.api.generic.GenericElement.GenericElementBuilder<T>
-
- Direct Known Subclasses:
GenericEdge.GenericEdgeBuilder
,GenericGraph.GenericGraphBuilder
,GenericVertex.GenericVertexBuilder
- Enclosing class:
- GenericElement
public abstract static class GenericElement.GenericElementBuilder<T extends GenericElement.GenericElementBuilder> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected NamespaceValidator
namespaceValidator
protected java.util.Map<java.lang.String,java.lang.Object>
properties
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericElementBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getNamespace()
T
id(java.lang.String id)
T
label(java.lang.String label)
T
namespace(java.lang.String namespace)
T
properties(java.util.Map<java.lang.String,java.lang.Object> properties)
T
property(java.lang.String name, java.lang.Object value)
-
-
-
Field Detail
-
properties
protected final java.util.Map<java.lang.String,java.lang.Object> properties
-
namespaceValidator
protected final NamespaceValidator namespaceValidator
-
-
Method Detail
-
id
public T id(java.lang.String id)
-
label
public T label(java.lang.String label)
-
namespace
public T namespace(java.lang.String namespace)
-
property
public T property(java.lang.String name, java.lang.Object value)
-
properties
public T properties(java.util.Map<java.lang.String,java.lang.Object> properties)
-
getNamespace
public java.lang.String getNamespace()
-
getId
public java.lang.String getId()
-
-