22#include <com/sun/star/lang/XServiceInfo.hpp>
23#include <com/sun/star/lang/XInitialization.hpp>
24#include <com/sun/star/rdf/XBlankNode.hpp>
25#include <com/sun/star/uno/XComponentContext.hpp>
27#include <com/sun/star/lang/IllegalArgumentException.hpp>
34 public ::cppu::WeakImplHelper<
35 css::lang::XServiceInfo,
36 css::lang::XInitialization,
48 virtual void SAL_CALL initialize(
const css::uno::Sequence< css::uno::Any > & aArguments)
override;
51 virtual OUString SAL_CALL getStringValue()
override;
54 CBlankNode(CBlankNode
const&) =
delete;
55 CBlankNode& operator=(CBlankNode
const&) =
delete;
60CBlankNode::CBlankNode()
64OUString SAL_CALL CBlankNode::getImplementationName()
69sal_Bool SAL_CALL CBlankNode::supportsService(OUString
const & serviceName)
74css::uno::Sequence< OUString > SAL_CALL CBlankNode::getSupportedServiceNames()
76 return {
"com.sun.star.rdf.BlankNode" };
80void SAL_CALL CBlankNode::initialize(
const css::uno::Sequence< css::uno::Any > & aArguments)
83 throw css::lang::IllegalArgumentException(
84 "CBlankNode::initialize: must give exactly 1 argument", *
this, 1);
88 if (!(aArguments[0] >>= arg)) {
89 throw css::lang::IllegalArgumentException(
90 "CBlankNode::initialize: argument must be string", *
this, 0);
95 throw css::lang::IllegalArgumentException(
96 "CBlankNode::initialize: argument is not valid blank node ID", *
this, 0);
102OUString SAL_CALL CBlankNode::getStringValue()
110extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
112 css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any>
const&)
114 return cppu::acquire(
new CBlankNode());
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * unoxml_CBlankNode_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
Sequence< PropertyValue > aArguments
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)