com.calitha.xml
Class PIAttributes

java.lang.Object
  extended by com.calitha.xml.PIAttributes

public class PIAttributes
extends Object

A PIAttributes object represents attributes in a single processing instruction.

The attributes must have the simple format of name=value.

Author:
Robert van Loenhout

Constructor Summary
PIAttributes(String data)
          Creates a new PIAttributes object by parsing the attributes in a string.
 
Method Summary
 String getValue(String name)
          Gets the value of an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PIAttributes

public PIAttributes(String data)
Creates a new PIAttributes object by parsing the attributes in a string.

Parameters:
data - string containing the attributes
Method Detail

getValue

public String getValue(String name)
Gets the value of an attribute.

Parameters:
name - attribute name
Returns:
attribute value