internal FilterState(string name, InnerEnum innerEnum, Org.Neo4j.Storageengine.Api.RelationshipDirection direction)
            {
                this._direction = direction;

                nameValue      = name;
                ordinalValue   = nextOrdinal++;
                innerEnumValue = innerEnum;
            }
            internal static FilterState FromRelationshipDirection(Org.Neo4j.Storageengine.Api.RelationshipDirection direction)
            {
                switch (direction)
                {
                case RelationshipDirection.OUTGOING:
                    return(FilterState.Outgoing);

                case RelationshipDirection.INCOMING:
                    return(FilterState.Incoming);

                case RelationshipDirection.LOOP:
                    return(FilterState.Loop);

                case RelationshipDirection.ERROR:
                    throw new System.ArgumentException("There has been a RelationshipDirection.ERROR");

                default:
                    throw new System.InvalidOperationException(format("Still poking my eye, dear checkstyle... (cannot filter on direction '%s')", direction));
                }
            }