Menu

#11 XmlObjectFactory: Make Features accessible from Java.

open
5
2004-01-19
2004-01-19
No

Let the programmer know, which features are
implemented. For example like this:

public class XmlObjectFactory
{
public static final boolean
SUPPORTS_SKIP_ATTRIBUTE = true;
public static final boolean
SUPPORTS_METHOD_ATTRIBUTE = true;

...

}

Which can be used in the program to determine the
features:

...

if (XmlObjectFactory.SUPPORTS_SKIP_ATTRIBUTE)
{
...
}

If the feature does not exist, a compile error occurs...

Discussion


Log in to post a comment.