Class ModelloFeaturesTestDom4jReader
java.lang.Object
org.codehaus.modello.test.features.io.dom4j.ModelloFeaturesTestDom4jReader
Class ModelloFeaturesTestDom4jReader.
- Version:
- $Revision$ $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckFieldWithDuplicate(org.dom4j.Element element, String tagName, String alias, Set parsed) Method checkFieldWithDuplicate.private voidcheckUnknownElement(org.dom4j.Element element, boolean strict) Method checkUnknownElement.private booleangetBooleanValue(String s, String attribute) Method getBooleanValue.private bytegetByteValue(String s, String attribute, boolean strict) Method getByteValue.private chargetCharacterValue(String s, String attribute) Method getCharacterValue.private DategetDateValue(String s, String attribute, String dateFormat) Method getDateValue.private doublegetDoubleValue(String s, String attribute, boolean strict) Method getDoubleValue.private floatgetFloatValue(String s, String attribute, boolean strict) Method getFloatValue.private intgetIntegerValue(String s, String attribute, boolean strict) Method getIntegerValue.private longgetLongValue(String s, String attribute, boolean strict) Method getLongValue.private shortgetShortValue(String s, String attribute, boolean strict) Method getShortValue.private StringMethod getTrimmedValue.private ActionparseAction(String tagName, org.dom4j.Element element, boolean strict) Method parseAction.private AnnotationTestparseAnnotationTest(String tagName, org.dom4j.Element element, boolean strict) Method parseAnnotationTest.private ArrayFeaturesparseArrayFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseArrayFeatures.private AssociationFeaturesparseAssociationFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseAssociationFeatures.private BaseClassparseBaseClass(String tagName, org.dom4j.Element element, boolean strict) Method parseBaseClass.private BidiInListparseBidiInList(String tagName, org.dom4j.Element element, boolean strict) Method parseBidiInList.private BidiInSetparseBidiInSet(String tagName, org.dom4j.Element element, boolean strict) Method parseBidiInSet.private BidirectionalparseBidirectional(String tagName, org.dom4j.Element element, boolean strict) Method parseBidirectional.private ContentTestparseContentTest(String tagName, org.dom4j.Element element, boolean strict) Method parseContentTest.private DueToparseDueTo(String tagName, org.dom4j.Element element, boolean strict) Method parseDueTo.private FeaturesparseFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseFeatures.private FileMethod parseFile.private InterfacesFeatureparseInterfacesFeature(String tagName, org.dom4j.Element element, boolean strict) Method parseInterfacesFeature.private JavaFeaturesparseJavaFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseJavaFeatures.private NodeItemparseNodeItem(String tagName, org.dom4j.Element element, boolean strict) Method parseNodeItem.private PackageNameFeatureparsePackageNameFeature(String tagName, org.dom4j.Element element, boolean strict) Method parsePackageNameFeature.private ReferenceparseReference(String tagName, org.dom4j.Element element, boolean strict) Method parseReference.private SimpleTypesparseSimpleTypes(String tagName, org.dom4j.Element element, boolean strict) Method parseSimpleTypes.private SubClassLevel1parseSubClassLevel1(String tagName, org.dom4j.Element element, boolean strict) Method parseSubClassLevel1.private SubClassLevel2parseSubClassLevel2(String tagName, org.dom4j.Element element, boolean strict) Method parseSubClassLevel2.private SubClassLevel3parseSubClassLevel3(String tagName, org.dom4j.Element element, boolean strict) Method parseSubClassLevel3.private SuperThingparseSuperThing(String tagName, org.dom4j.Element element, boolean strict) Method parseSuperThing.private ThingparseThing(String tagName, org.dom4j.Element element, boolean strict) Method parseThing.private ThingyparseThingy(String tagName, org.dom4j.Element element, boolean strict) Method parseThingy.private XdocFeaturesparseXdocFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseXdocFeatures.private XmlAttributesparseXmlAttributes(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlAttributes.private XmlContentparseXmlContent(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlContent.private XmlContentLongparseXmlContentLong(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlContentLong.private XmlContentLongWithAttributesparseXmlContentLongWithAttributes(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlContentLongWithAttributes.private XmlFeaturesparseXmlFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlFeatures.private XmlFieldsOrderparseXmlFieldsOrder(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlFieldsOrder.private XmlFieldsOrderParentparseXmlFieldsOrderParent(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlFieldsOrderParent.private XmlFieldsOrderParent2parseXmlFieldsOrderParent2(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlFieldsOrderParent2.private XmlTransientFieldsparseXmlTransientFields(String tagName, org.dom4j.Element element, boolean strict) Method parseXmlTransientFields.private XsdFeaturesparseXsdFeatures(String tagName, org.dom4j.Element element, boolean strict) Method parseXsdFeatures.read(InputStream stream) Method read.read(InputStream stream, boolean strict) Method read.Method read.Method read.Method read.Method read.private Featuresread(org.dom4j.Document document, boolean strict) Method read.private org.codehaus.plexus.util.xml.Xpp3DomwriteElementToXpp3Dom(org.dom4j.Element element) Method writeElementToXpp3Dom.
-
Constructor Details
-
ModelloFeaturesTestDom4jReader
public ModelloFeaturesTestDom4jReader()
-
-
Method Details
-
checkFieldWithDuplicate
private boolean checkFieldWithDuplicate(org.dom4j.Element element, String tagName, String alias, Set parsed) throws org.dom4j.DocumentException Method checkFieldWithDuplicate.- Parameters:
element- a element object.tagName- a tagName object.alias- a alias object.parsed- a parsed object.- Returns:
- boolean
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
checkUnknownElement
private void checkUnknownElement(org.dom4j.Element element, boolean strict) throws org.dom4j.DocumentException Method checkUnknownElement.- Parameters:
element- a element object.strict- a strict object.- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getBooleanValue
Method getBooleanValue.- Parameters:
s- a s object.attribute- a attribute object.- Returns:
- boolean
-
getByteValue
private byte getByteValue(String s, String attribute, boolean strict) throws org.dom4j.DocumentException Method getByteValue.- Parameters:
s- a s object.attribute- a attribute object.strict- a strict object.- Returns:
- byte
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getCharacterValue
Method getCharacterValue.- Parameters:
s- a s object.attribute- a attribute object.- Returns:
- char
-
getDateValue
private Date getDateValue(String s, String attribute, String dateFormat) throws org.dom4j.DocumentException Method getDateValue.- Parameters:
s- a s object.attribute- a attribute object.dateFormat- a dateFormat object.- Returns:
- Date
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getDoubleValue
private double getDoubleValue(String s, String attribute, boolean strict) throws org.dom4j.DocumentException Method getDoubleValue.- Parameters:
s- a s object.attribute- a attribute object.strict- a strict object.- Returns:
- double
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getFloatValue
private float getFloatValue(String s, String attribute, boolean strict) throws org.dom4j.DocumentException Method getFloatValue.- Parameters:
s- a s object.attribute- a attribute object.strict- a strict object.- Returns:
- float
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getIntegerValue
private int getIntegerValue(String s, String attribute, boolean strict) throws org.dom4j.DocumentException Method getIntegerValue.- Parameters:
s- a s object.attribute- a attribute object.strict- a strict object.- Returns:
- int
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getLongValue
private long getLongValue(String s, String attribute, boolean strict) throws org.dom4j.DocumentException Method getLongValue.- Parameters:
s- a s object.attribute- a attribute object.strict- a strict object.- Returns:
- long
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getShortValue
private short getShortValue(String s, String attribute, boolean strict) throws org.dom4j.DocumentException Method getShortValue.- Parameters:
s- a s object.attribute- a attribute object.strict- a strict object.- Returns:
- short
- Throws:
org.dom4j.DocumentException- DocumentException if any.
-
getTrimmedValue
Method getTrimmedValue.- Parameters:
s- a s object.- Returns:
- String
-
parseAction
private Action parseAction(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseAction.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- Action
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseAnnotationTest
private AnnotationTest parseAnnotationTest(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseAnnotationTest.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- AnnotationTest
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseArrayFeatures
private ArrayFeatures parseArrayFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseArrayFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- ArrayFeatures
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseAssociationFeatures
private AssociationFeatures parseAssociationFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseAssociationFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- AssociationFeatures
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseBaseClass
private BaseClass parseBaseClass(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseBaseClass.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- BaseClass
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseBidiInList
private BidiInList parseBidiInList(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseBidiInList.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- BidiInList
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseBidiInSet
private BidiInSet parseBidiInSet(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseBidiInSet.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- BidiInSet
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseBidirectional
private Bidirectional parseBidirectional(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseBidirectional.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- Bidirectional
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseContentTest
private ContentTest parseContentTest(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseContentTest.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- ContentTest
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseDueTo
private DueTo parseDueTo(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseDueTo.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- DueTo
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseFeatures
private Features parseFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseFile
private File parseFile(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseFile.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- File
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseInterfacesFeature
private InterfacesFeature parseInterfacesFeature(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseInterfacesFeature.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- InterfacesFeature
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseJavaFeatures
private JavaFeatures parseJavaFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseJavaFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- JavaFeatures
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseNodeItem
private NodeItem parseNodeItem(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseNodeItem.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- NodeItem
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parsePackageNameFeature
private PackageNameFeature parsePackageNameFeature(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parsePackageNameFeature.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- PackageNameFeature
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseReference
private Reference parseReference(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseReference.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- Reference
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseSimpleTypes
private SimpleTypes parseSimpleTypes(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseSimpleTypes.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- SimpleTypes
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseSubClassLevel1
private SubClassLevel1 parseSubClassLevel1(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseSubClassLevel1.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- SubClassLevel1
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseSubClassLevel2
private SubClassLevel2 parseSubClassLevel2(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseSubClassLevel2.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- SubClassLevel2
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseSubClassLevel3
private SubClassLevel3 parseSubClassLevel3(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseSubClassLevel3.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- SubClassLevel3
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseSuperThing
private SuperThing parseSuperThing(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseSuperThing.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- SuperThing
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseThing
private Thing parseThing(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseThing.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- Thing
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseThingy
private Thingy parseThingy(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseThingy.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- Thingy
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXdocFeatures
private XdocFeatures parseXdocFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXdocFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XdocFeatures
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlAttributes
private XmlAttributes parseXmlAttributes(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlAttributes.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlAttributes
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlContent
private XmlContent parseXmlContent(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlContent.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlContent
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlContentLong
private XmlContentLong parseXmlContentLong(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlContentLong.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlContentLong
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlContentLongWithAttributes
private XmlContentLongWithAttributes parseXmlContentLongWithAttributes(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlContentLongWithAttributes.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlContentLongWithAttributes
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlFeatures
private XmlFeatures parseXmlFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlFeatures
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlFieldsOrder
private XmlFieldsOrder parseXmlFieldsOrder(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlFieldsOrder.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlFieldsOrder
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlFieldsOrderParent
private XmlFieldsOrderParent parseXmlFieldsOrderParent(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlFieldsOrderParent.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlFieldsOrderParent
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlFieldsOrderParent2
private XmlFieldsOrderParent2 parseXmlFieldsOrderParent2(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlFieldsOrderParent2.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlFieldsOrderParent2
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXmlTransientFields
private XmlTransientFields parseXmlTransientFields(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXmlTransientFields.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XmlTransientFields
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
parseXsdFeatures
private XsdFeatures parseXsdFeatures(String tagName, org.dom4j.Element element, boolean strict) throws IOException, org.dom4j.DocumentException Method parseXsdFeatures.- Parameters:
tagName- a tagName object.element- a element object.strict- a strict object.- Returns:
- XsdFeatures
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
Method read.- Parameters:
reader- a reader object.strict- a strict object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
Method read.- Parameters:
reader- a reader object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
public Features read(InputStream stream, boolean strict) throws IOException, org.dom4j.DocumentException Method read.- Parameters:
stream- a stream object.strict- a strict object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
Method read.- Parameters:
stream- a stream object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
Method read.- Parameters:
url- a url object.strict- a strict object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
Method read.- Parameters:
url- a url object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
read
private Features read(org.dom4j.Document document, boolean strict) throws IOException, org.dom4j.DocumentException Method read.- Parameters:
document- a document object.strict- a strict object.- Returns:
- Features
- Throws:
IOException- IOException if any.org.dom4j.DocumentException- DocumentException if any.
-
writeElementToXpp3Dom
Method writeElementToXpp3Dom.- Parameters:
element- a element object.- Returns:
- Xpp3Dom
-