LibraryToggle FramesPrintFeedback

You can customize attribute mapping on a per-attribute basis using the property element's fixedAttributeAsConstantProperty attribute. Setting this attribute to true instructs the code generator to map any attribute defined using fixed attribute to a Java constant.

Example 15.23 shows an in-line customization that forces the code generator to generate constants for a single attribute with a fixed value.

Example 15.24 shows an external binding file that customizes the generation of a fixed attribute.

Comments powered by Disqus
loading table of contents...