コード例 #1
0
 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;
 }
コード例 #2
0
 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()));
         }
     }
 }
コード例 #3
0
 public static FieldSignature InputField(string name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue, InputMapper mapper)
 {
     return(new FieldSignatureAnonymousInnerClass2(name, type, requireNonNull(defaultValue, "defaultValue"), mapper));
 }
コード例 #4
0
 public static FieldSignature InputField(string name, Neo4jTypes.AnyType type, InputMapper mapper)
 {
     return(new FieldSignatureAnonymousInnerClass(name, type, mapper));
 }
コード例 #5
0
 public static FieldSignature InputField(string name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue)
 {
     return(new FieldSignature(name, type, requireNonNull(defaultValue, "defaultValue"), false));
 }
コード例 #6
0
 public static FieldSignature InputField(string name, Neo4jTypes.AnyType type)
 {
     return(new FieldSignature(name, type, null, false));
 }
コード例 #7
0
 public static FieldSignature OutputField(string name, Neo4jTypes.AnyType type, bool deprecated)
 {
     return(new FieldSignature(name, type, null, deprecated));
 }
コード例 #8
0
 public static FieldSignature OutputField(string name, Neo4jTypes.AnyType type)
 {
     return(OutputField(name, type, false));
 }
コード例 #9
0
 public static DefaultParameterValue NullValue(Neo4jTypes.AnyType type)
 {
     return(new DefaultParameterValue(null, type));
 }
コード例 #10
0
 public static DefaultParameterValue NtList <T1>(IList <T1> value, Neo4jTypes.AnyType inner)
 {
     return(new DefaultParameterValue(value, Neo4jTypes.NTList(inner)));
 }
コード例 #11
0
 public DefaultParameterValue(object value, Neo4jTypes.AnyType type)
 {
     this._value = value;
     this._type  = type;
 }
コード例 #12
0
 /// <summary>
 /// Define an output field </summary>
 public virtual Builder Out(Neo4jTypes.AnyType type)
 {
     OutputType = type;
     return(this);
 }
コード例 #13
0
 /// <summary>
 /// Define an input field </summary>
 public virtual Builder In(string name, Neo4jTypes.AnyType type)
 {
     InputSignature.Add(FieldSignature.InputField(name, type));
     return(this);
 }