Class: XSD_collectionMapping_Array

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ontomde-java/java/xsdCollectionMapping.rb

Overview

Helper class for wrapping a base type in ad-hoc collection.

Instance Method Summary collapse

Instance Method Details

#addCollectionImplem(type) ⇒ Object

return type enclosed in collection implementation declaration



105
106
107
# File 'lib/ontomde-java/java/xsdCollectionMapping.rb', line 105

def addCollectionImplem(type)
  return "#{type}[]"
end

#addCollectionInterface(type) ⇒ Object

return type enclosed in collection interface declaration



101
102
103
# File 'lib/ontomde-java/java/xsdCollectionMapping.rb', line 101

def addCollectionInterface(type)
  return "#{type}[]"
end

#addNew(type) ⇒ Object

return new element type collection creator



109
110
111
# File 'lib/ontomde-java/java/xsdCollectionMapping.rb', line 109

def addNew(type)
  return "new #{type}[0]"
end