Module: Mrdf_Resource

Defined in:
lib/ontomde-java/struts/header_link.rb,
lib/ontomde-java/java/xsd.rb,
lib/ontomde-java/java/java.rb,
lib/ontomde-java/java/build.rb,
lib/ontomde-java/struts/jsp_edit.rb,
lib/ontomde-java/kbjava/rdfToJava.rb

Overview

< ::Crdfs_Class

Instance Method Summary collapse

Instance Method Details

#css_color_classObject



16
17
18
# File 'lib/ontomde-java/struts/header_link.rb', line 16

def css_color_class
  rdf_Repository.css_color_class
end

#css_path_modelObject

def struts_header_link_generate

  rdf_Repository.struts_header_link_generate
end


13
14
15
# File 'lib/ontomde-java/struts/header_link.rb', line 13

def css_path_model
  rdf_Repository.css_path_model
end

#java_ClassRelativeDirObject

returns directory containing compiled java classes and other ressources in classpath.



5
6
7
8
9
10
11
# File 'lib/ontomde-java/java/build.rb', line 5

def java_ClassRelativeDir
	p="#{context[:javaDir]}"
	p="#{context[:webContentRelativeDir,p]}"
	p="#{p}/WEB-INF/classes"
	p="#{context[:javaClassDir,p]}"
	return p
end

#java_ignoreMe?Boolean

return true if java generator should totaly ignore this element.

NOTE:

  • Default implementation returns false

Returns:

  • (Boolean)


1370
1371
1372
# File 'lib/ontomde-java/java/java.rb', line 1370

def java_ignoreMe?
  return false
end

#kbjava_isUmlObject?Boolean

Returns:

  • (Boolean)


335
336
337
338
339
340
341
342
# File 'lib/ontomde-java/kbjava/rdfToJava.rb', line 335

def kbjava_isUmlObject?
  c=self
  # filters out Protege meta-model element
  return false if (c.kind_of?(Ckb_UML_METACLASS))||(c.kind_of?(Ckb_UML_SLOT))
  # filters out rdf root elements
  return false if (c.class==Crdf_Resource) || (c.class==Crdf_Property)
  return true
end

#struts_encloseWrite(before, after, &block) ⇒ Object



35
36
37
38
39
# File 'lib/ontomde-java/struts/jsp_edit.rb', line 35

def struts_encloseWrite(before,after,&block)
  write(before)
  yield
  write(after)
end

#xsd_ignoreMe?Boolean

return true if java generator should totaly ignore this element.

NOTE:

  • Default implementation returns false

Returns:

  • (Boolean)


1344
1345
1346
# File 'lib/ontomde-java/java/xsd.rb', line 1344

def xsd_ignoreMe?
  return false
end