Class AssemblyXpp3Reader
java.lang.Object
org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader
Class AssemblyXpp3Reader.
- Version:
- $Revision$ $Date$
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
If set the parser will be loaded with all single characters from the XHTML specification.Field contentTransformer. -
Constructor Summary
ConstructorsConstructorDescriptionAssemblyXpp3Reader
(AssemblyXpp3Reader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkFieldWithDuplicate
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String tagName, String alias, Set parsed) Method checkFieldWithDuplicate.private void
checkUnknownAttribute
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String attribute, String tagName, boolean strict) Method checkUnknownAttribute.private void
checkUnknownElement
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method checkUnknownElement.boolean
Returns the state of the "add default entities" flag.private boolean
getBooleanValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getBooleanValue.private boolean
getBooleanValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String defaultValue) Method getBooleanValue.private byte
getByteValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getByteValue.private char
getCharacterValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getCharacterValue.private Date
getDateValue
(String s, String attribute, String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getDateValue.private Date
getDateValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method getDateValue.private double
getDoubleValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getDoubleValue.private float
getFloatValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getFloatValue.private int
getIntegerValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getIntegerValue.private long
getLongValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getLongValue.private String
getRequiredAttributeValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getRequiredAttributeValue.private short
getShortValue
(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method getShortValue.private String
Method getTrimmedValue.private String
interpolatedTrimmed
(String value, String context) Method interpolatedTrimmed.private int
nextTag
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) Method nextTag.private Assembly
parseAssembly
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseAssembly.private ContainerDescriptorHandlerConfig
parseContainerDescriptorHandlerConfig
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseContainerDescriptorHandlerConfig.private DependencySet
parseDependencySet
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseDependencySet.private FileItem
parseFileItem
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseFileItem.private FileSet
parseFileSet
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseFileSet.private GroupVersionAlignment
parseGroupVersionAlignment
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseGroupVersionAlignment.private ModuleBinaries
parseModuleBinaries
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseModuleBinaries.private ModuleSet
parseModuleSet
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseModuleSet.private ModuleSources
parseModuleSources
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseModuleSources.private Repository
parseRepository
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseRepository.private UnpackOptions
parseUnpackOptions
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method parseUnpackOptions.read
(InputStream in) Method read.read
(InputStream in, boolean strict) Method read.private Assembly
read
(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) Method read.void
setAddDefaultEntities
(boolean addDefaultEntities) Sets the state of the "add default entities" flag.
-
Field Details
-
addDefaultEntities
private boolean addDefaultEntitiesIf set the parser will be loaded with all single characters from the XHTML specification. The entities used:- http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
- http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent
- http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent
-
contentTransformer
Field contentTransformer.
-
-
Constructor Details
-
AssemblyXpp3Reader
public AssemblyXpp3Reader() -
AssemblyXpp3Reader
-
-
Method Details
-
checkFieldWithDuplicate
private boolean checkFieldWithDuplicate(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String tagName, String alias, Set parsed) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method checkFieldWithDuplicate.- Parameters:
parser
- a parser object.parsed
- a parsed object.alias
- a alias object.tagName
- a tagName object.- Returns:
- boolean
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
checkUnknownAttribute
private void checkUnknownAttribute(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String attribute, String tagName, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException Method checkUnknownAttribute.- Parameters:
parser
- a parser object.strict
- a strict object.tagName
- a tagName object.attribute
- a attribute object.- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.IOException
- IOException if any.
-
checkUnknownElement
private void checkUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException Method checkUnknownElement.- Parameters:
parser
- a parser object.strict
- a strict object.- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.IOException
- IOException if any.
-
getAddDefaultEntities
public boolean getAddDefaultEntities()Returns the state of the "add default entities" flag.- Returns:
- boolean
-
getBooleanValue
private boolean getBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getBooleanValue.- Parameters:
s
- a s object.parser
- a parser object.attribute
- a attribute object.- Returns:
- boolean
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getBooleanValue
private boolean getBooleanValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, String defaultValue) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getBooleanValue.- Parameters:
s
- a s object.defaultValue
- a defaultValue object.parser
- a parser object.attribute
- a attribute object.- Returns:
- boolean
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getByteValue
private byte getByteValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getByteValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- byte
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getCharacterValue
private char getCharacterValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getCharacterValue.- Parameters:
s
- a s object.parser
- a parser object.attribute
- a attribute object.- Returns:
- char
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getDateValue
private Date getDateValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getDateValue.- Parameters:
s
- a s object.parser
- a parser object.attribute
- a attribute object.- Returns:
- Date
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getDateValue
private Date getDateValue(String s, String attribute, String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getDateValue.- Parameters:
s
- a s object.parser
- a parser object.dateFormat
- a dateFormat object.attribute
- a attribute object.- Returns:
- Date
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getDoubleValue
private double getDoubleValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getDoubleValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- double
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getFloatValue
private float getFloatValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getFloatValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- float
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getIntegerValue
private int getIntegerValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getIntegerValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- int
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getLongValue
private long getLongValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getLongValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- long
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getRequiredAttributeValue
private String getRequiredAttributeValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getRequiredAttributeValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- String
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getShortValue
private short getShortValue(String s, String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException Method getShortValue.- Parameters:
s
- a s object.strict
- a strict object.parser
- a parser object.attribute
- a attribute object.- Returns:
- short
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
getTrimmedValue
Method getTrimmedValue.- Parameters:
s
- a s object.- Returns:
- String
-
interpolatedTrimmed
Method interpolatedTrimmed.- Parameters:
value
- a value object.context
- a context object.- Returns:
- String
-
nextTag
private int nextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method nextTag.- Parameters:
parser
- a parser object.- Returns:
- int
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
read
public Assembly read(Reader reader, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Parameters:
reader
- a reader object.strict
- a strict object.- Returns:
- Assembly
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.- See Also:
-
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Assembly read(Reader reader) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Parameters:
reader
- a reader object.- Returns:
- Assembly
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.- See Also:
-
ReaderFactory.newXmlReader(java.io.InputStream)
-
read
public Assembly read(InputStream in, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- Assembly
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
read
public Assembly read(InputStream in) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method read.- Parameters:
in
- a in object.- Returns:
- Assembly
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseAssembly
private Assembly parseAssembly(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseAssembly.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- Assembly
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseContainerDescriptorHandlerConfig
private ContainerDescriptorHandlerConfig parseContainerDescriptorHandlerConfig(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseContainerDescriptorHandlerConfig.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- ContainerDescriptorHandlerConfig
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseDependencySet
private DependencySet parseDependencySet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseDependencySet.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- DependencySet
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseFileItem
private FileItem parseFileItem(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseFileItem.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- FileItem
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseFileSet
private FileSet parseFileSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseFileSet.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- FileSet
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseGroupVersionAlignment
private GroupVersionAlignment parseGroupVersionAlignment(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseGroupVersionAlignment.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- GroupVersionAlignment
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseModuleBinaries
private ModuleBinaries parseModuleBinaries(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseModuleBinaries.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- ModuleBinaries
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseModuleSet
private ModuleSet parseModuleSet(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseModuleSet.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- ModuleSet
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseModuleSources
private ModuleSources parseModuleSources(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseModuleSources.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- ModuleSources
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseRepository
private Repository parseRepository(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseRepository.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- Repository
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
parseUnpackOptions
private UnpackOptions parseUnpackOptions(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method parseUnpackOptions.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- UnpackOptions
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
read
private Assembly read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException Method read.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- Assembly
- Throws:
IOException
- IOException if any.org.codehaus.plexus.util.xml.pull.XmlPullParserException
- XmlPullParserException if any.
-
setAddDefaultEntities
public void setAddDefaultEntities(boolean addDefaultEntities) Sets the state of the "add default entities" flag.- Parameters:
addDefaultEntities
- a addDefaultEntities object.
-