public class PluginRegistryXpp3Reader
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
PluginRegistryXpp3Reader.ContentTransformer |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
addDefaultEntities
If set the parser will be loaded with all single characters
from the XHTML specification.
|
PluginRegistryXpp3Reader.ContentTransformer |
contentTransformer
Field contentTransformer.
|
| Constructor and Description |
|---|
PluginRegistryXpp3Reader() |
PluginRegistryXpp3Reader(PluginRegistryXpp3Reader.ContentTransformer contentTransformer) |
| Modifier and Type | Method and 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 Plugin |
parsePlugin(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePlugin.
|
private PluginRegistry |
parsePluginRegistry(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePluginRegistry.
|
private TrackableBase |
parseTrackableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseTrackableBase.
|
PluginRegistry |
read(java.io.InputStream in)
Method read.
|
PluginRegistry |
read(java.io.InputStream in,
boolean strict)
Method read.
|
PluginRegistry |
read(java.io.Reader reader) |
PluginRegistry |
read(java.io.Reader reader,
boolean strict) |
private PluginRegistry |
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.
|
private boolean addDefaultEntities
public final PluginRegistryXpp3Reader.ContentTransformer contentTransformer
public PluginRegistryXpp3Reader()
public PluginRegistryXpp3Reader(PluginRegistryXpp3Reader.ContentTransformer contentTransformer)
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
parser - parsed - alias - tagName - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
parser - strict - tagName - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOExceptionprivate void checkUnknownElement(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
throws org.codehaus.plexus.util.xml.pull.XmlPullParserException,
java.io.IOException
parser - strict - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionjava.io.IOExceptionpublic boolean getAddDefaultEntities()
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
s - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - defaultValue - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - parser - dateFormat - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate 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
s - strict - parser - attribute - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate java.lang.String getTrimmedValue(java.lang.String s)
s - private java.lang.String interpolatedTrimmed(java.lang.String value,
java.lang.String context)
value - context - private int nextTag(org.codehaus.plexus.util.xml.pull.XmlPullParser parser)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic PluginRegistry read(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader - strict - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionReaderFactory.newXmlReader(java.io.InputStream)public PluginRegistry read(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionReaderFactory.newXmlReader(java.io.InputStream)public PluginRegistry read(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in - strict - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic PluginRegistry read(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate Plugin parsePlugin(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate PluginRegistry parsePluginRegistry(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate TrackableBase parseTrackableBase(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprivate PluginRegistry read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
parser - strict - java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic void setAddDefaultEntities(boolean addDefaultEntities)
addDefaultEntities -