* @param parser
*/
private ActivationProperty parseActivationProperty(String tagName, XmlPullParser parser, boolean strict, String encoding)
throws IOException, XmlPullParserException
{
ActivationProperty activationProperty = new ActivationProperty();
activationProperty.setModelEncoding( encoding );
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( parser.getName().equals( "name" ) )
{
if ( parsed.contains( "name" ) )
{
throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
}
parsed.add( "name" );
activationProperty.setName( getTrimmedValue( parser.nextText()) );
}
else if ( parser.getName().equals( "value" ) )
{
if ( parsed.contains( "value" ) )
{
throw new XmlPullParserException( "Duplicated tag: '" + parser.getName() + "'", parser, null);
}
parsed.add( "value" );
activationProperty.setValue( getTrimmedValue( parser.nextText()) );
}
else
{
if ( strict )
{