Class AssemblyXpp3Reader


  • public class AssemblyXpp3Reader
    extends java.lang.Object
    Class AssemblyXpp3Reader.
    Version:
    $Revision$ $Date$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean checkFieldWithDuplicate​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String tagName, java.lang.String alias, java.util.Set parsed)
      Method checkFieldWithDuplicate.
      private void checkUnknownAttribute​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String attribute, java.lang.String tagName, boolean strict)
      Method checkUnknownAttribute.
      private void checkUnknownElement​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method checkUnknownElement.
      boolean getAddDefaultEntities()
      Returns the state of the "add default entities" flag.
      private boolean getBooleanValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
      Method getBooleanValue.
      private boolean getBooleanValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, java.lang.String defaultValue)
      Method getBooleanValue.
      private byte getByteValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getByteValue.
      private char getCharacterValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
      Method getCharacterValue.
      private java.util.Date getDateValue​(java.lang.String s, java.lang.String attribute, java.lang.String dateFormat, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
      Method getDateValue.
      private java.util.Date getDateValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
      Method getDateValue.
      private double getDoubleValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getDoubleValue.
      private float getFloatValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getFloatValue.
      private int getIntegerValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getIntegerValue.
      private long getLongValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getLongValue.
      private java.lang.String getRequiredAttributeValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getRequiredAttributeValue.
      private short getShortValue​(java.lang.String s, java.lang.String attribute, org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
      Method getShortValue.
      private java.lang.String getTrimmedValue​(java.lang.String s)
      Method getTrimmedValue.
      private java.lang.String interpolatedTrimmed​(java.lang.String value, java.lang.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.
      Assembly read​(java.io.InputStream in)
      Method read.
      Assembly read​(java.io.InputStream in, boolean strict)
      Method read.
      Assembly read​(java.io.Reader reader)  
      Assembly read​(java.io.Reader reader, boolean strict)  
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • addDefaultEntities

        private boolean addDefaultEntities
        If 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
    • Method Detail

      • checkFieldWithDuplicate

        private boolean checkFieldWithDuplicate​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                java.lang.String tagName,
                                                java.lang.String alias,
                                                java.util.Set parsed)
                                         throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method checkFieldWithDuplicate.
        Parameters:
        parser -
        parsed -
        alias -
        tagName -
        Returns:
        boolean
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • checkUnknownAttribute

        private void checkUnknownAttribute​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                           java.lang.String attribute,
                                           java.lang.String tagName,
                                           boolean strict)
                                    throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                           java.io.IOException
        Method checkUnknownAttribute.
        Parameters:
        parser -
        strict -
        tagName -
        attribute -
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
        java.io.IOException
      • checkUnknownElement

        private void checkUnknownElement​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                         boolean strict)
                                  throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                         java.io.IOException
        Method checkUnknownElement.
        Parameters:
        parser -
        strict -
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
        java.io.IOException
      • getAddDefaultEntities

        public boolean getAddDefaultEntities()
        Returns the state of the "add default entities" flag.
        Returns:
        boolean
      • getBooleanValue

        private boolean getBooleanValue​(java.lang.String s,
                                        java.lang.String attribute,
                                        org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
                                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getBooleanValue.
        Parameters:
        s -
        parser -
        attribute -
        Returns:
        boolean
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getBooleanValue

        private boolean getBooleanValue​(java.lang.String s,
                                        java.lang.String attribute,
                                        org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                        java.lang.String defaultValue)
                                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getBooleanValue.
        Parameters:
        s -
        defaultValue -
        parser -
        attribute -
        Returns:
        boolean
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getByteValue

        private byte getByteValue​(java.lang.String s,
                                  java.lang.String attribute,
                                  org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                  boolean strict)
                           throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getByteValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        byte
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getCharacterValue

        private char getCharacterValue​(java.lang.String s,
                                       java.lang.String attribute,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
                                throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getCharacterValue.
        Parameters:
        s -
        parser -
        attribute -
        Returns:
        char
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getDateValue

        private java.util.Date getDateValue​(java.lang.String s,
                                            java.lang.String attribute,
                                            org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
                                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getDateValue.
        Parameters:
        s -
        parser -
        attribute -
        Returns:
        Date
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getDateValue

        private java.util.Date getDateValue​(java.lang.String s,
                                            java.lang.String attribute,
                                            java.lang.String dateFormat,
                                            org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
                                     throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getDateValue.
        Parameters:
        s -
        parser -
        dateFormat -
        attribute -
        Returns:
        Date
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getDoubleValue

        private double getDoubleValue​(java.lang.String s,
                                      java.lang.String attribute,
                                      org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                      boolean strict)
                               throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getDoubleValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        double
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getFloatValue

        private float getFloatValue​(java.lang.String s,
                                    java.lang.String attribute,
                                    org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                    boolean strict)
                             throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getFloatValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        float
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getIntegerValue

        private int getIntegerValue​(java.lang.String s,
                                    java.lang.String attribute,
                                    org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                    boolean strict)
                             throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getIntegerValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        int
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getLongValue

        private long getLongValue​(java.lang.String s,
                                  java.lang.String attribute,
                                  org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                  boolean strict)
                           throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getLongValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        long
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getRequiredAttributeValue

        private java.lang.String getRequiredAttributeValue​(java.lang.String s,
                                                           java.lang.String attribute,
                                                           org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                           boolean strict)
                                                    throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getRequiredAttributeValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        String
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getShortValue

        private short getShortValue​(java.lang.String s,
                                    java.lang.String attribute,
                                    org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                    boolean strict)
                             throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method getShortValue.
        Parameters:
        s -
        strict -
        parser -
        attribute -
        Returns:
        short
        Throws:
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • getTrimmedValue

        private java.lang.String getTrimmedValue​(java.lang.String s)
        Method getTrimmedValue.
        Parameters:
        s -
        Returns:
        String
      • interpolatedTrimmed

        private java.lang.String interpolatedTrimmed​(java.lang.String value,
                                                     java.lang.String context)
        Method interpolatedTrimmed.
        Parameters:
        value -
        context -
        Returns:
        String
      • nextTag

        private int nextTag​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
                     throws java.io.IOException,
                            org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method nextTag.
        Parameters:
        parser -
        Returns:
        int
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • read

        public Assembly read​(java.io.Reader reader,
                             boolean strict)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Parameters:
        reader -
        strict -
        Returns:
        Assembly
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
        See Also:
        ReaderFactory.newXmlReader(java.io.InputStream)
      • read

        public Assembly read​(java.io.Reader reader)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Parameters:
        reader -
        Returns:
        Assembly
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
        See Also:
        ReaderFactory.newXmlReader(java.io.InputStream)
      • read

        public Assembly read​(java.io.InputStream in,
                             boolean strict)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method read.
        Parameters:
        in -
        strict -
        Returns:
        Assembly
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • read

        public Assembly read​(java.io.InputStream in)
                      throws java.io.IOException,
                             org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method read.
        Parameters:
        in -
        Returns:
        Assembly
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseAssembly

        private Assembly parseAssembly​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                       boolean strict)
                                throws java.io.IOException,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseAssembly.
        Parameters:
        parser -
        strict -
        Returns:
        Assembly
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseContainerDescriptorHandlerConfig

        private ContainerDescriptorHandlerConfig parseContainerDescriptorHandlerConfig​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                                                       boolean strict)
                                                                                throws java.io.IOException,
                                                                                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseContainerDescriptorHandlerConfig.
        Parameters:
        parser -
        strict -
        Returns:
        ContainerDescriptorHandlerConfig
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseDependencySet

        private DependencySet parseDependencySet​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                 boolean strict)
                                          throws java.io.IOException,
                                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseDependencySet.
        Parameters:
        parser -
        strict -
        Returns:
        DependencySet
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseFileItem

        private FileItem parseFileItem​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                       boolean strict)
                                throws java.io.IOException,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseFileItem.
        Parameters:
        parser -
        strict -
        Returns:
        FileItem
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseFileSet

        private FileSet parseFileSet​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                     boolean strict)
                              throws java.io.IOException,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseFileSet.
        Parameters:
        parser -
        strict -
        Returns:
        FileSet
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseGroupVersionAlignment

        private GroupVersionAlignment parseGroupVersionAlignment​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                                 boolean strict)
                                                          throws java.io.IOException,
                                                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseGroupVersionAlignment.
        Parameters:
        parser -
        strict -
        Returns:
        GroupVersionAlignment
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseModuleBinaries

        private ModuleBinaries parseModuleBinaries​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                   boolean strict)
                                            throws java.io.IOException,
                                                   org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseModuleBinaries.
        Parameters:
        parser -
        strict -
        Returns:
        ModuleBinaries
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseModuleSet

        private ModuleSet parseModuleSet​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                         boolean strict)
                                  throws java.io.IOException,
                                         org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseModuleSet.
        Parameters:
        parser -
        strict -
        Returns:
        ModuleSet
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseModuleSources

        private ModuleSources parseModuleSources​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                 boolean strict)
                                          throws java.io.IOException,
                                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseModuleSources.
        Parameters:
        parser -
        strict -
        Returns:
        ModuleSources
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseRepository

        private Repository parseRepository​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                           boolean strict)
                                    throws java.io.IOException,
                                           org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseRepository.
        Parameters:
        parser -
        strict -
        Returns:
        Repository
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • parseUnpackOptions

        private UnpackOptions parseUnpackOptions​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                 boolean strict)
                                          throws java.io.IOException,
                                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method parseUnpackOptions.
        Parameters:
        parser -
        strict -
        Returns:
        UnpackOptions
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • read

        private Assembly read​(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                              boolean strict)
                       throws java.io.IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Method read.
        Parameters:
        parser -
        strict -
        Returns:
        Assembly
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • setAddDefaultEntities

        public void setAddDefaultEntities​(boolean addDefaultEntities)
        Sets the state of the "add default entities" flag.
        Parameters:
        addDefaultEntities -