Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I expect to see following code to be created with all used interfaces:
public final class RestNode extends InnerNode implements RestView, RestChange, RestInit { private Integer port; private Integer portRange; @Override public int port() { return port; } @Override public RestChange changePort(int port) { this.port = port; return this; } @Override public RestInit initPort(int port) { this.port = port; return this; } @Override public int portRange() { return portRange; } @Override public RestChange changePortRange(int portRange) { this.portRange = portRange; return this; } @Override public RestInit initPortRange(int portRange) { this.portRange = portRange; return this; } /** * {@inheritDoc} */ @Override public void traverseChildren(ConfigurationVisitor visitor) { visitor.visitLeafNode("port", port); visitor.visitLeafNode("portRange", portRange); } /** * {@inheritDoc} */ @Override public void traverseChild(String key, ConfigurationVisitor visitor) throws NoSuchElementException { switch (key) { case "port": visitor.visitLeafNode("port", port); break; case "portRange": visitor.visitLeafNode("portRange", portRange); break; default: throw new NoSuchElementException(key); } } }
Attachments
Issue Links
- is required by
-
IGNITE-14102 Create escaping and searching util methods for configuration framework
- Resolved
- links to