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 String
approved element namestatic final String
class name attribute namestatic final String
id attribute namestatic final String
license reference attribute namestatic final String
name attribute namestatic final String
resource file name attribute name.static final String
families element namestatic final String
family element namestatic final String
license element namestatic final String
licenses element namestatic final String
matcher element namestatic final String
matchers element namestatic final String
note element namestatic final String
root of the configuration file -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isInlineNode
(String parent, String child) Returns true if the specified child node should be placed inline in the XML document.static boolean
isLicenseChild
(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 boolean
isLicenseInline
(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.
-