com.netflix.nfgraph.spec
Class NFNodeSpec

java.lang.Object
  extended by 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.
 
Method Summary
 java.lang.String getNodeTypeName()
           
 int getNumMultipleProperties()
           
 int getNumSingleProperties()
           
 NFPropertySpec getPropertySpec(java.lang.String propertyName)
           
 NFPropertySpec[] getPropertySpecs()
           
 java.util.Iterator<NFPropertySpec> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NFNodeSpec

public NFNodeSpec(java.lang.String nodeTypeName,
                  NFPropertySpec... propertySpecs)
The constructor for an NFNodeSpec.

Parameters:
nodeTypeName - the name of the node type
propertySpecs - a complete listing of the properties available for this node type.
Method Detail

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>