APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xml.internal.serializer

public final Class OutputPropertyUtils

extends Object
Class Inheritance
Imports
java.util.Properties

This class contains some static methods that act as helpers when parsing a Java Property object. This class is not a public API. It is only public because it is used outside of this package.
See Also
java.util.Properties

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

the value in this property list as a boolean value, or false if null or not "yes".
getBooleanProperty
(String
the property key.
key
,
Properties
the list of properties that will be searched.
props
)

Searches for the boolean property with the specified key in the property list.

public static int

Returns:

the value in this property list as a int value, or 0 if null or not a number.
getIntProperty
(String
the property key.
key
,
Properties
the list of properties that will be searched.
props
)

Searches for the int property with the specified key in the property list.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OutputPropertyUtilsback to summary
public OutputPropertyUtils()

Method Detail

getBooleanPropertyback to summary
public static boolean getBooleanProperty(String key, Properties props)

Searches for the boolean property with the specified key in the property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns false if the property is not found, or if the value is other than "yes".

Parameters
key:String

the property key.

props:Properties

the list of properties that will be searched.

Returns:boolean

the value in this property list as a boolean value, or false if null or not "yes".

getIntPropertyback to summary
public static int getIntProperty(String key, Properties props)

Searches for the int property with the specified key in the property list. If the key is not found in this property list, the default property list, and its defaults, recursively, are then checked. The method returns false if the property is not found, or if the value is other than "yes".

Parameters
key:String

the property key.

props:Properties

the list of properties that will be searched.

Returns:int

the value in this property list as a int value, or 0 if null or not a number.