class Gedcomx::Identifier

Public Class Methods

create(attributes = {}) click to toggle source
# File lib/gedcomx/identifier.rb, line 8
def self.create(attributes = {})
  new_identifier = self.new
  new_identifier.type = attributes[:type] if attributes[:type]
  new_identifier.value = attributes[:value] if attributes[:value]
  new_identifier
end
java_class() click to toggle source
# File lib/gedcomx/identifier.rb, line 4
def self.java_class
  Java::OrgGedcomxConclusion::Identifier
end
new(input = nil) click to toggle source
# File lib/gedcomx/identifier.rb, line 15
def initialize(input = nil)
  @identifier = input || self.class.java_class.new
end

Public Instance Methods

to_java() click to toggle source
# File lib/gedcomx/identifier.rb, line 35
def to_java
  @identifier
end
type() click to toggle source
# File lib/gedcomx/identifier.rb, line 19
def type
  @identifier.get_type.to_s
end
type=(input_type) click to toggle source
# File lib/gedcomx/identifier.rb, line 23
def type=(input_type)
  @identifier.type = ( input_type.is_a? Gedcomx.java_uri_class ) ? input_type : Gedcomx.new_uri(input_type)
end
value() click to toggle source
# File lib/gedcomx/identifier.rb, line 27
def value
  @identifier.get_value.to_s
end
value=(input_value) click to toggle source
# File lib/gedcomx/identifier.rb, line 31
def value=(input_value)
  @identifier.value = ( input_value.is_a? Gedcomx.java_uri_class ) ? input_value : Gedcomx.new_uri(input_value)
end