Skip to content

added Entity.visit(EntityVisitor) to navigate entity state#276

Merged
pdowler merged 2 commits intoopencadc:mainfrom
pdowler:main
Oct 23, 2025
Merged

added Entity.visit(EntityVisitor) to navigate entity state#276
pdowler merged 2 commits intoopencadc:mainfrom
pdowler:main

Conversation

@pdowler
Copy link
Member

@pdowler pdowler commented Oct 22, 2025

add ConfigFileReader with lower level raw output than PropertiesReader

add ConfigFileReader with lower level raw output than PropertiesReader
@pdowler
Copy link
Member Author

pdowler commented Oct 22, 2025

I might go back and rename some variable names to vodmlID (or similar); will look at the code when I get home and see if it makes it more clear...

}

private class LogVisitor implements EntityVisitor {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just a "visual" test? Shouldn't it accumulate the visited elements which then can be tested against the expected list?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some assertions about number of visits of each type... so doesn't check the exact visits (that is still visual) but a code change likely breaks the test

}
} else if (isDataModelClass(cc)) {
// depth-first recursion
visitImpl(cc, co, ev);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

visitNode missing?

Copy link
Member Author

@pdowler pdowler Oct 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I think in principle this us right. I will try to create a test and then add it.

@pdowler pdowler merged commit bb8b28b into opencadc:main Oct 23, 2025
1 check passed
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