Package org.apache.rat.configuration
Class XMLConfig
java.lang.Object
org.apache.rat.configuration.XMLConfig
Configuration definitions for XMLConfiguration reader and writer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringapproved element namestatic final Stringclass name attribute namestatic final Stringid attribute namestatic final Stringlicense reference attribute namestatic final Stringname attribute namestatic final Stringresource file name attribute name.static final Stringfamilies element namestatic final Stringfamily element namestatic final Stringlicense element namestatic final Stringlicenses element namestatic final Stringmatcher element namestatic final Stringmatchers element namestatic final Stringnote element namestatic final Stringroot of the configuration file -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInlineNode(String parent, String child) Returns true if the specified child node should be placed inline in the XML document.static booleanisLicenseChild(String child) Returns true if the child should be a child node of a license node, as opposed to an attribute of the license.static booleanisLicenseInline(String child) Return true if the child should be inlined in the parent node.
-
Field Details
-
ATT_ID
id attribute name- See Also:
-
ATT_NAME
name attribute name- See Also:
-
ATT_LICENSE_REF
license reference attribute name- See Also:
-
ATT_CLASS_NAME
class name attribute name- See Also:
-
ATT_RESOURCE
resource file name attribute name.- See Also:
-
ROOT
root of the configuration file- See Also:
-
FAMILIES
families element name- See Also:
-
LICENSES
licenses element name- See Also:
-
LICENSE
license element name- See Also:
-
APPROVED
approved element name- See Also:
-
FAMILY
family element name- See Also:
-
NOTE
note element name- See Also:
-
MATCHERS
matchers element name- See Also:
-
MATCHER
matcher element name- See Also:
-
-
Method Details
-
isInlineNode
Returns true if the specified child node should be placed inline in the XML document.- Parameters:
parent- the parent node name.child- the child node name.- Returns:
- true if the child should be inlined.
-
isLicenseChild
Returns true if the child should be a child node of a license node, as opposed to an attribute of the license.- Parameters:
child- the name of the child node.- Returns:
- true if the child should be a child node.
-
isLicenseInline
Return true if the child should be inlined in the parent node.- Parameters:
child- the name of the child node.- Returns:
- true if the child should be inlined.
-