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 String
approved element namestatic String
class name attribute namestatic String
id attribute namestatic String
license reference attribute namestatic String
name attribute namestatic String
resource file name attribute name.static String
families element namestatic String
family element namestatic String
license element namestatic String
licenses element namestatic String
matcher element namestatic String
matchers element namestatic String
note element namestatic 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:
- Constant Field Values
-
ATT_NAME
name attribute name- See Also:
- Constant Field Values
-
ATT_LICENSE_REF
license reference attribute name- See Also:
- Constant Field Values
-
ATT_CLASS_NAME
class name attribute name- See Also:
- Constant Field Values
-
ATT_RESOURCE
resource file name attribute name.- See Also:
- Constant Field Values
-
ROOT
root of the configuration file- See Also:
- Constant Field Values
-
FAMILIES
families element name- See Also:
- Constant Field Values
-
LICENSES
licenses element name- See Also:
- Constant Field Values
-
LICENSE
license element name- See Also:
- Constant Field Values
-
APPROVED
approved element name- See Also:
- Constant Field Values
-
FAMILY
family element name- See Also:
- Constant Field Values
-
NOTE
note element name- See Also:
- Constant Field Values
-
MATCHERS
matchers element name- See Also:
- Constant Field Values
-
MATCHER
matcher element name- See Also:
- Constant Field Values
-
-
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.
-