Class: VertxSqlClient::PropertyKind

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/property_kind.rb

Overview

Represents which kind the property is.

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (::VertxSqlClient::PropertyKind) create(name = nil, type = nil)

Returns a property kind matching the provided name, the type can be used to check the property value type or cast it to the expected type

Parameters:

  • name (String) (defaults to: nil)
  • type (Nil) (defaults to: nil)

Returns:

  • (::VertxSqlClient::PropertyKind)
    a property kind matching the provided name, the type can be used to check the property value type or cast it to the expected type

Raises:

  • (ArgumentError)


20
21
22
23
24
25
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/property_kind.rb', line 20

def self.create(name=nil,type=nil)
  if name.class == String && type.class == Class && !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxSqlclient::PropertyKind.java_method(:create, [Java::java.lang.String.java_class,Java::JavaLang::Class.java_class]).call(name,::Vertx::Util::Utils.j_class_of(type)),::VertxSqlClient::PropertyKind, ::Vertx::Util::Utils.v_type_of(type))
  end
  raise ArgumentError, "Invalid arguments when calling create(#{name},#{type})"
end

Instance Method Details

- (String) name

Returns the property name

Returns:

  • (String)
    the property name

Raises:

  • (ArgumentError)


27
28
29
30
31
32
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-sql-client/property_kind.rb', line 27

def name
  if !block_given?
    return @j_del.java_method(:name, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling name()"
end