public class LifecycleMappingMetadataSourceXpp3Reader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
LifecycleMappingMetadataSourceXpp3Reader.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.
|
LifecycleMappingMetadataSourceXpp3Reader.ContentTransformer |
contentTransformer
Field contentTransformer.
|
Constructor and Description |
---|
LifecycleMappingMetadataSourceXpp3Reader() |
LifecycleMappingMetadataSourceXpp3Reader(LifecycleMappingMetadataSourceXpp3Reader.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 LifecycleMappingMetadata |
parseLifecycleMappingMetadata(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseLifecycleMappingMetadata.
|
private LifecycleMappingMetadataSource |
parseLifecycleMappingMetadataSource(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parseLifecycleMappingMetadataSource.
|
private PluginExecutionFilter |
parsePluginExecutionFilter(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePluginExecutionFilter.
|
private PluginExecutionMetadata |
parsePluginExecutionMetadata(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method parsePluginExecutionMetadata.
|
LifecycleMappingMetadataSource |
read(java.io.InputStream in)
Method read.
|
LifecycleMappingMetadataSource |
read(java.io.InputStream in,
boolean strict)
Method read.
|
LifecycleMappingMetadataSource |
read(java.io.Reader reader) |
LifecycleMappingMetadataSource |
read(java.io.Reader reader,
boolean strict) |
private LifecycleMappingMetadataSource |
read(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method read.
|
LifecycleMappingMetadata |
readLifecycleMappingMetadata(java.io.InputStream in)
Method readLifecycleMappingMetadata.
|
LifecycleMappingMetadata |
readLifecycleMappingMetadata(java.io.InputStream in,
boolean strict)
Method readLifecycleMappingMetadata.
|
LifecycleMappingMetadata |
readLifecycleMappingMetadata(java.io.Reader reader) |
LifecycleMappingMetadata |
readLifecycleMappingMetadata(java.io.Reader reader,
boolean strict) |
private LifecycleMappingMetadata |
readLifecycleMappingMetadata(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method readLifecycleMappingMetadata.
|
PluginExecutionFilter |
readPluginExecutionFilter(java.io.InputStream in)
Method readPluginExecutionFilter.
|
PluginExecutionFilter |
readPluginExecutionFilter(java.io.InputStream in,
boolean strict)
Method readPluginExecutionFilter.
|
PluginExecutionFilter |
readPluginExecutionFilter(java.io.Reader reader) |
PluginExecutionFilter |
readPluginExecutionFilter(java.io.Reader reader,
boolean strict) |
private PluginExecutionFilter |
readPluginExecutionFilter(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method readPluginExecutionFilter.
|
PluginExecutionMetadata |
readPluginExecutionMetadata(java.io.InputStream in)
Method readPluginExecutionMetadata.
|
PluginExecutionMetadata |
readPluginExecutionMetadata(java.io.InputStream in,
boolean strict)
Method readPluginExecutionMetadata.
|
PluginExecutionMetadata |
readPluginExecutionMetadata(java.io.Reader reader) |
PluginExecutionMetadata |
readPluginExecutionMetadata(java.io.Reader reader,
boolean strict) |
private PluginExecutionMetadata |
readPluginExecutionMetadata(org.codehaus.plexus.util.xml.pull.XmlPullParser parser,
boolean strict)
Method readPluginExecutionMetadata.
|
void |
setAddDefaultEntities(boolean addDefaultEntities)
Sets the state of the "add default entities" flag.
|
private boolean addDefaultEntities
public final LifecycleMappingMetadataSourceXpp3Reader.ContentTransformer contentTransformer
public LifecycleMappingMetadataSourceXpp3Reader()
public LifecycleMappingMetadataSourceXpp3Reader(LifecycleMappingMetadataSourceXpp3Reader.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.XmlPullParserException
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
parser
- strict
- tagName
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOException
private 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.XmlPullParserException
java.io.IOException
public 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.XmlPullParserException
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
s
- defaultValue
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- parser
- dateFormat
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
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
s
- strict
- parser
- attribute
- org.codehaus.plexus.util.xml.pull.XmlPullParserException
private 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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public LifecycleMappingMetadataSource read(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public LifecycleMappingMetadataSource read(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public LifecycleMappingMetadataSource read(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public LifecycleMappingMetadataSource read(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public LifecycleMappingMetadata readLifecycleMappingMetadata(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public LifecycleMappingMetadata readLifecycleMappingMetadata(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public LifecycleMappingMetadata readLifecycleMappingMetadata(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public LifecycleMappingMetadata readLifecycleMappingMetadata(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public PluginExecutionFilter readPluginExecutionFilter(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public PluginExecutionFilter readPluginExecutionFilter(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public PluginExecutionFilter readPluginExecutionFilter(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public PluginExecutionFilter readPluginExecutionFilter(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public PluginExecutionMetadata readPluginExecutionMetadata(java.io.Reader reader, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public PluginExecutionMetadata readPluginExecutionMetadata(java.io.Reader reader) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
reader
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
ReaderFactory.newXmlReader(java.io.InputStream)
public PluginExecutionMetadata readPluginExecutionMetadata(java.io.InputStream in, boolean strict) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- strict
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public PluginExecutionMetadata readPluginExecutionMetadata(java.io.InputStream in) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
in
- java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private LifecycleMappingMetadata parseLifecycleMappingMetadata(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private LifecycleMappingMetadataSource parseLifecycleMappingMetadataSource(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PluginExecutionFilter parsePluginExecutionFilter(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PluginExecutionMetadata parsePluginExecutionMetadata(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private LifecycleMappingMetadataSource 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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private LifecycleMappingMetadata readLifecycleMappingMetadata(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PluginExecutionFilter readPluginExecutionFilter(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
private PluginExecutionMetadata readPluginExecutionMetadata(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.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public void setAddDefaultEntities(boolean addDefaultEntities)
addDefaultEntities
-