org.apache.cocoon.components.source.helpers
Class SourceProperty

java.lang.Object
  extended byorg.apache.cocoon.components.source.helpers.SourceProperty
All Implemented Interfaces:
XMLizable

public class SourceProperty
extends Object
implements XMLizable

The interface for a property of a source

Version:
$Id: SourceProperty.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
SourceProperty(Element property)
          Creates a new property for a source
SourceProperty(String namespace, String name)
          Creates a new property for a source
SourceProperty(String namespace, String name, String value)
          Creates a new property for a source
 
Method Summary
 String getName()
          Return the name of the property
 String getNamespace()
          Return the namespace of the property
 Element getValue()
          Get the property value as DOM Element.
 String getValueAsString()
          Returns the value of the property
 void setName(String name)
          Deprecated. buggy
 void setNamespace(String namespace)
          Deprecated. buggy
 void setValue(NodeList values)
          Sets the value of the property
 void setValue(String value)
          Sets the value of the property
 void toSAX(ContentHandler handler)
          Generates SAX events representing the object's state.
NOTE : if the implementation can produce lexical events, care should be taken that handler can actually be a XMLConsumer that accepts such events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceProperty

public SourceProperty(String namespace,
                      String name)
Creates a new property for a source

Parameters:
namespace - The namespace of the property
name - The name of the property

SourceProperty

public SourceProperty(String namespace,
                      String name,
                      String value)
Creates a new property for a source

Parameters:
namespace - The namespace of the property
name - The name of the property
value - The value of the property

SourceProperty

public SourceProperty(Element property)
Creates a new property for a source

Parameters:
property - The property in DOM representation
Method Detail

setNamespace

public void setNamespace(String namespace)
Deprecated. buggy

Sets the namespace for this property

Parameters:
namespace - The namespace of the property

getNamespace

public String getNamespace()
Return the namespace of the property

Returns:
The namespace of the property

setName

public void setName(String name)
Deprecated. buggy

Sets the name of the property

Parameters:
name - Name of the property

getName

public String getName()
Return the name of the property

Returns:
Name of the property

setValue

public void setValue(String value)
Sets the value of the property

Parameters:
value - Value of the property

getValueAsString

public String getValueAsString()
Returns the value of the property

Returns:
Value of the property

setValue

public void setValue(NodeList values)
Sets the value of the property

Parameters:
values -

getValue

public Element getValue()
Get the property value as DOM Element.


toSAX

public void toSAX(ContentHandler handler)
           throws SAXException
Generates SAX events representing the object's state.
NOTE : if the implementation can produce lexical events, care should be taken that handler can actually be a XMLConsumer that accepts such events.

Specified by:
toSAX in interface XMLizable
Parameters:
handler -
Throws:
SAXException


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.