com.soebes.maven.plugins.mlv.model.io.xpp3
Class LicensesXpp3Reader

java.lang.Object
  extended by com.soebes.maven.plugins.mlv.model.io.xpp3.LicensesXpp3Reader

public class LicensesXpp3Reader
extends Object

Class LicensesXpp3Reader.

Version:
$Revision$ $Date$

Field Summary
private  boolean addDefaultEntities
          If set the parser will be loaded with all single characters from the XHTML specification.
 
Constructor Summary
LicensesXpp3Reader()
           
 
Method Summary
private  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 getAddDefaultEntities()
          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 getTrimmedValue(String s)
          Method getTrimmedValue.
private  void initParser(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method initParser.
private  int nextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
          Method nextTag.
private  LicenseItem parseLicenseItem(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseLicenseItem.
private  LicensesContainer parseLicensesContainer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseLicensesContainer.
private  LicensesList parseLicensesList(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict)
          Method parseLicensesList.
 LicensesContainer read(InputStream in)
          Method read.
 LicensesContainer read(InputStream in, boolean strict)
          Method read.
 LicensesContainer read(Reader reader)
           
 LicensesContainer read(Reader reader, boolean strict)
           
private  LicensesContainer 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:

Constructor Detail

LicensesXpp3Reader

public LicensesXpp3Reader()
Method Detail

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 -
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,
                                   String attribute,
                                   String tagName,
                                   boolean strict)
                            throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
                                   IOException
Method checkUnknownAttribute.

Parameters:
parser -
strict -
tagName -
attribute -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

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 -
strict -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException

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 -
parser -
attribute -
Returns:
boolean
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
defaultValue -
parser -
attribute -
Returns:
boolean
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
byte
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
parser -
attribute -
Returns:
char
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
parser -
attribute -
Returns:
Date
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
parser -
dateFormat -
attribute -
Returns:
Date
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
double
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
float
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
int
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
long
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
String
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
strict -
parser -
attribute -
Returns:
short
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

getTrimmedValue

private String getTrimmedValue(String s)
Method getTrimmedValue.

Parameters:
s -
Returns:
String

initParser

private void initParser(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
                 throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method initParser.

Parameters:
parser -
Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException

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 -
Returns:
int
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseLicenseItem

private LicenseItem parseLicenseItem(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                     boolean strict)
                              throws IOException,
                                     org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseLicenseItem.

Parameters:
parser -
strict -
Returns:
LicenseItem
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseLicensesContainer

private LicensesContainer parseLicensesContainer(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                                 boolean strict)
                                          throws IOException,
                                                 org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseLicensesContainer.

Parameters:
parser -
strict -
Returns:
LicensesContainer
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

parseLicensesList

private LicensesList parseLicensesList(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                                       boolean strict)
                                throws IOException,
                                       org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method parseLicensesList.

Parameters:
parser -
strict -
Returns:
LicensesList
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

read

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

read

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

read

public LicensesContainer read(InputStream in,
                              boolean strict)
                       throws IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.

Parameters:
in -
strict -
Returns:
LicensesContainer
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

read

public LicensesContainer read(InputStream in)
                       throws IOException,
                              org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.

Parameters:
in -
Returns:
LicensesContainer
Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException

read

private LicensesContainer read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
                               boolean strict)
                        throws IOException,
                               org.codehaus.plexus.util.xml.pull.XmlPullParserException
Method read.

Parameters:
parser -
strict -
Returns:
LicensesContainer
Throws:
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 -


Copyright © 2009-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.