com.netflix.nfgraph.spec
Class NFNodeSpec
java.lang.Object
com.netflix.nfgraph.spec.NFNodeSpec
- All Implemented Interfaces:
- java.lang.Iterable<NFPropertySpec>
public class NFNodeSpec
- extends java.lang.Object
- implements java.lang.Iterable<NFPropertySpec>
An NFNodeSpec specifies the schema for a node type.
It is defined by a node name and a number of NFPropertySpec.
|
Constructor Summary |
NFNodeSpec(java.lang.String nodeTypeName,
NFPropertySpec... propertySpecs)
The constructor for an NFNodeSpec. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NFNodeSpec
public NFNodeSpec(java.lang.String nodeTypeName,
NFPropertySpec... propertySpecs)
- The constructor for an
NFNodeSpec.
- Parameters:
nodeTypeName - the name of the node typepropertySpecs - a complete listing of the properties available for this node type.
getNodeTypeName
public java.lang.String getNodeTypeName()
getPropertySpecs
public NFPropertySpec[] getPropertySpecs()
getPropertySpec
public NFPropertySpec getPropertySpec(java.lang.String propertyName)
getNumSingleProperties
public int getNumSingleProperties()
getNumMultipleProperties
public int getNumMultipleProperties()
iterator
public java.util.Iterator<NFPropertySpec> iterator()
- Specified by:
iterator in interface java.lang.Iterable<NFPropertySpec>