Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add writer to java #45

Merged
merged 20 commits into from
Dec 26, 2024
Merged

Conversation

tom-hg57
Copy link
Collaborator

@tom-hg57 tom-hg57 commented Dec 23, 2024

This PR changes only java stuff:

  • Remove unused functions from lang_pack.py
  • Improve and unify java classes and templates
  • Add logging to generated classes
  • Fix and improve RdfReader (move XMLTest.java to java/utils/RdfReader.java)
  • Add Main class and RdfWriter

Bases on branch https://github.com/tom-hg57/cimgen/tree/add-profile-class-and-writer-to-cpp (#41)

@tom-hg57 tom-hg57 requested a review from m-mirz December 24, 2024 11:12
@tom-hg57 tom-hg57 marked this pull request as draft December 24, 2024 12:51
@tom-hg57 tom-hg57 marked this pull request as ready for review December 25, 2024 15:11
…make it easier to switch to real log4j logger

Signed-off-by: Thomas Günther <[email protected]>
…bjects, fix type of objects (if first found as reference, i.e. rdf:resource attribute of other object)

Signed-off-by: Thomas Günther <[email protected]>
…e same as the type name, e.g. Region vs. SubGeographicalRegion)

Signed-off-by: Thomas Günther <[email protected]>
…"CIMDatatype"), use these instead of "is_a_float_class" and "is_primitive_float_attribute"

There are now 4 disjoint class types:
- is_a_datatype_class (= float)
- is_an_enum_class
- is_a_primitive_class (Integer, Boolean, Float/Decimal = float, String/Date/DateTime/MonthDay = string)
- all others are normal classes

and 5 disjoint attribute types:
- is_class_attribute
- is_enum_attribute
- is_datatype_attribute
- is_list_attribute
- is_primitive_attribute

Signed-off-by: Thomas Günther <[email protected]>
Signed-off-by: Thomas Günther <[email protected]>
@m-mirz m-mirz force-pushed the add-writer-to-java branch from a0cfb89 to abdc8e4 Compare December 26, 2024 19:37
@m-mirz m-mirz merged commit d164b5c into sogno-platform:master Dec 26, 2024
14 checks passed
@tom-hg57 tom-hg57 deleted the add-writer-to-java branch December 26, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants