Package org.faktorips.runtime.xml
Interface IToXmlSupport
public interface IToXmlSupport
Interface for runtime objects implementing a method to write their properties to XML.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method may be used to write a check in a default toXml implementation.static voidThis method may be used to write a check in a default toXml implementation.voidwritePropertiesToXml(Element element) Subclasses override this method to write their properties into the given XML element.
-
Method Details
-
writePropertiesToXml
Subclasses override this method to write their properties into the given XML element.The standard implementation throws an
UnsupportedOperationExceptionif the support for toXml ("Generate toXml Support") is not activated in the FIPS standard builder. Generated classes override but do NOT call super.- Parameters:
element- the XML element to write the properties to
-
check
This method may be used to write a check in a default toXml implementation.- Parameters:
runtimeObject- an object that might be an instance ofIToXmlSupport- Throws:
UnsupportedOperationException- if the givenruntimeObjectis no instance ofIToXmlSupport.
-
check
This method may be used to write a check in a default toXml implementation.- Parameters:
runtimeObjectClass- a class that might be assignable fromIToXmlSupport- Throws:
UnsupportedOperationException- if the givenruntimeObjectis no instance ofIToXmlSupport.
-