org.ow2.orchestra.pvm.internal.util
Class PvmXmlUtil

java.lang.Object
  extended by org.ow2.orchestra.pvm.internal.util.PvmXmlUtil

public abstract class PvmXmlUtil
extends Object

Author:
Guillaume Porcher

Method Summary
static String attribute(Element element, String attributeName, boolean required, Parse parse)
          convenience method to combine extraction of a string attribute value.
static Boolean attributeBoolean(Element element, String attributeName, boolean required, Parse parse)
          parse an attribute as an boolean.
static Boolean attributeBoolean(Element element, String attributeName, boolean required, Parse parse, Boolean defaultValue)
          parse an attribute as an boolean.
static Integer attributeInteger(Element element, String attributeName, boolean required, Parse parse)
          parse an attribute as an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

attribute

public static String attribute(Element element,
                               String attributeName,
                               boolean required,
                               Parse parse)
convenience method to combine extraction of a string attribute value. If the attribute exists, it is returned. If the attribute is not present, the defaultValue is returned. The attribute is not present and it is required, a problem will be added to the parse.


attributeInteger

public static Integer attributeInteger(Element element,
                                       String attributeName,
                                       boolean required,
                                       Parse parse)
parse an attribute as an integer.


attributeBoolean

public static Boolean attributeBoolean(Element element,
                                       String attributeName,
                                       boolean required,
                                       Parse parse)
parse an attribute as an boolean.


attributeBoolean

public static Boolean attributeBoolean(Element element,
                                       String attributeName,
                                       boolean required,
                                       Parse parse,
                                       Boolean defaultValue)
parse an attribute as an boolean.



Copyright © 2011 OW2 Consortium. All Rights Reserved.