# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 module Java::OrgTmapiCore::Occurrence #include RTM::Occurrence # Returns the Topic this Occurrence belongs to. # # :call-seq: # parent -> Topic # def parent getParent end alias :reverse_children :parent # Returns the lexical representation of the value of the Occurrence. # # For the datatype String the string itself is returned # For the datatype anyURI the Locator.getReference -> String is returned. # # :call-seq: # value -> String # def value getValue end # If argument is a String, this methods sets the string value and # the datatype implicitly to xsd:string. # # If argument is a Locator, this method sets the IRI value and # the datatype implicitly to xsd:anyURI. # # If argument is a Float, this method sets the Float value and # the datatype implicitly to xsd:float. # # If argument is a Fixnum, this method sets Fixnum value and # the datatype implicitly to xsd:long. # # If argument is a Bignum, this method sets Bignum value and # the datatype implicitly to xsd:integer. # # :call-seq: # value=(argument) # def value=(argument) setValue(argument) end end