|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.converter.xsem.PrototypeXmlContentConverterWrapper
public class PrototypeXmlContentConverterWrapper
An XmlContentConverter implementation that wraps the actual XmlContentConverter
configured (based on the settings) and creates and configures a new XmlContentConverter
for both toXml(org.compass.core.xml.XmlObject) and fromXml(String, java.io.Reader).
| Constructor Summary | |
|---|---|
PrototypeXmlContentConverterWrapper()
|
|
| Method Summary | |
|---|---|
void |
configure(CompassSettings settings)
Configure using the given settings. |
AliasedXmlObject |
fromXml(String alias,
Reader xml)
Converts a raw xml and an alias into an AliasedXmlObject by creating and configuring
a new XmlContentConverter implementation. |
String |
toString()
|
String |
toXml(XmlObject xmlObject)
Converts the XmlObject into raw xml by creating and configuring a new
XmlContentConverter implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrototypeXmlContentConverterWrapper()
| Method Detail |
|---|
public void configure(CompassSettings settings)
throws CompassException
CompassConfigurable
configure in interface CompassConfigurablesettings - The settings for the configured object
CompassException
public String toXml(XmlObject xmlObject)
throws ConversionException
XmlObject into raw xml by creating and configuring a new
XmlContentConverter implementation.
toXml in interface XmlContentConverterxmlObject - The xml object to convert to an xml string
ConversionException - Failed to convert the xml object to an xml stringXmlContentConverter.toXml(org.compass.core.xml.XmlObject)
public AliasedXmlObject fromXml(String alias,
Reader xml)
throws ConversionException
AliasedXmlObject by creating and configuring
a new XmlContentConverter implementation.
fromXml in interface XmlContentConverteralias - The alias the aliases xml object is associated withxml - The xml string that will be converted into an aliases xml object
ConversionExceptionXmlContentConverter.fromXml(String, java.io.Reader)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||