public UserFunctionSignature(QualifiedName name, IList <FieldSignature> inputSignature, Neo4jTypes.AnyType type, string deprecated, string[] allowed, string description, bool caseInsensitive) { this._name = name; this._inputSignature = unmodifiableList(inputSignature); this._type = type; this._deprecated = deprecated; this._description = description; this._allowed = allowed; this._caseInsensitive = caseInsensitive; }
private FieldSignature(string name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue, bool deprecated) { this._name = requireNonNull(name, "name"); this._type = requireNonNull(type, "type"); this._defaultValue = defaultValue; this._deprecated = deprecated; if (defaultValue != null) { if (!type.Equals(defaultValue.Neo4jType())) { throw new System.ArgumentException(string.Format("Default value does not have a valid type, field type was {0}, but value type was {1}.", type.ToString(), defaultValue.Neo4jType().ToString())); } } }
public static FieldSignature InputField(string name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue, InputMapper mapper) { return(new FieldSignatureAnonymousInnerClass2(name, type, requireNonNull(defaultValue, "defaultValue"), mapper)); }
public static FieldSignature InputField(string name, Neo4jTypes.AnyType type, InputMapper mapper) { return(new FieldSignatureAnonymousInnerClass(name, type, mapper)); }
public static FieldSignature InputField(string name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue) { return(new FieldSignature(name, type, requireNonNull(defaultValue, "defaultValue"), false)); }
public static FieldSignature InputField(string name, Neo4jTypes.AnyType type) { return(new FieldSignature(name, type, null, false)); }
public static FieldSignature OutputField(string name, Neo4jTypes.AnyType type, bool deprecated) { return(new FieldSignature(name, type, null, deprecated)); }
public static FieldSignature OutputField(string name, Neo4jTypes.AnyType type) { return(OutputField(name, type, false)); }
public static DefaultParameterValue NullValue(Neo4jTypes.AnyType type) { return(new DefaultParameterValue(null, type)); }
public static DefaultParameterValue NtList <T1>(IList <T1> value, Neo4jTypes.AnyType inner) { return(new DefaultParameterValue(value, Neo4jTypes.NTList(inner))); }
public DefaultParameterValue(object value, Neo4jTypes.AnyType type) { this._value = value; this._type = type; }
/// <summary> /// Define an output field </summary> public virtual Builder Out(Neo4jTypes.AnyType type) { OutputType = type; return(this); }
/// <summary> /// Define an input field </summary> public virtual Builder In(string name, Neo4jTypes.AnyType type) { InputSignature.Add(FieldSignature.InputField(name, type)); return(this); }