|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.components.source.helpers.SourceProperty
public class SourceProperty
The interface for a property of a source
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceProperty(String namespace, String name)
namespace
- The namespace of the propertyname
- The name of the propertypublic SourceProperty(String namespace, String name, String value)
namespace
- The namespace of the propertyname
- The name of the propertyvalue
- The value of the propertypublic SourceProperty(Element property)
property
- The property in DOM representationMethod Detail |
---|
public void setNamespace(String namespace)
namespace
- The namespace of the propertypublic String getNamespace()
public void setName(String name)
name
- Name of the propertypublic String getName()
public void setValue(String value)
value
- Value of the propertypublic String getValueAsString()
public void setValue(NodeList values)
values
- public Element getValue()
public void toSAX(ContentHandler handler) throws SAXException
handler
can actually be a XMLConsumer
that accepts such
events.
toSAX
in interface XMLizable
handler
-
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |