org.apache.felix.ipojo.metadata
Class Attribute

java.lang.Object
  extended by org.apache.felix.ipojo.metadata.Attribute

public class Attribute
extends Object

An attribute is a key-value pair. It represents the attribute of XML elements.

Author:
Felix Project Team

Constructor Summary
Attribute(String name, String value)
          Creates an attribute.
Attribute(String name, String ns, String value)
          Creates an attribute.
 
Method Summary
 String getName()
          Gets the attribute name.
 String getNameSpace()
          Gets attribute namespace.
 String getValue()
          Gets attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(String name,
                 String value)
Creates an attribute.

Parameters:
name - the name of the attribute.
value - the value of the attribute.

Attribute

public Attribute(String name,
                 String ns,
                 String value)
Creates an attribute.

Parameters:
name - the name of the attribute.
value - the value of the attribute.
ns - the namespace of the attribute.
Method Detail

getName

public String getName()
Gets the attribute name.

Returns:
the name

getValue

public String getValue()
Gets attribute value.

Returns:
the value

getNameSpace

public String getNameSpace()
Gets attribute namespace.

Returns:
the namespace


Copyright © 2011 Apache Software Foundation. All Rights Reserved.