#81827# right handling of nullable and writable attribute.

This commit is contained in:
Lars Langhans 2001-03-07 13:58:38 +00:00
parent b5061f82dc
commit b3b126998d
3 changed files with 16 additions and 9 deletions

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configpath.hxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: jb $ $Date: 2001-02-13 16:09:53 $
* last change: $Author: lla $ $Date: 2001-03-07 14:58:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -152,6 +152,7 @@ namespace configmgr
bool bDefaultable : 1;
Attributes():bWritable(true), bNullable(true), bNotified(true), bConstrained(false), bReplacing(false), bLocalized(false), bDefaultable(false){}
//! IMPORTANT: if this defaults are changed, you MUST change also the handling in CmXMLFormater::handleAttributes() and OValueHandler::startElement()
};
//--------------------------------------------------------------------

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configexcept.cxx,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change: $Author: jb $ $Date: 2000-11-07 14:35:59 $
* last change: $Author: lla $ $Date: 2001-03-07 14:58:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -74,12 +74,12 @@ namespace configmgr
}
//---------------------------------------------------------------------
Exception::Exception(char const* sAsciiMessage)
: m_sAsciiMessage()
: m_sAsciiMessage(sAsciiMessage)
{
}
//---------------------------------------------------------------------
Exception::Exception(rtl::OString const& sAsciiMessage)
: m_sAsciiMessage()
: m_sAsciiMessage(sAsciiMessage)
{
}
//---------------------------------------------------------------------

View file

@ -2,9 +2,9 @@
*
* $RCSfile: configgroup.cxx,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: dg $ $Date: 2000-11-30 08:20:25 $
* last change: $Author: lla $ $Date: 2001-03-07 14:58:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -63,6 +63,7 @@
#include "nodechange.hxx"
#include "nodechangeimpl.hxx"
#include "treeimpl.hxx"
#include "tracer.hxx"
#ifndef _COM_SUN_STAR_SCRIPT_XTYPECONVERTER_HPP_
#include <com/sun/star/script/XTypeConverter.hpp>
@ -163,7 +164,12 @@ UnoAny GroupUpdater::implValidateValue(NodeRef const& aNode, UnoAny const& aValu
if (!aValue.hasValue())
{
if (!aNode.getAttributes().bNullable)
throw ConstraintViolation( "Group Member Update: Node is not nullable !" );
{
rtl::OString sError("Group Member Update: Node (");
sError += OUSTRING2ASCII(aNode.getName().toString());
sError += ") is not nullable !";
throw ConstraintViolation( sError );
}
}
UnoType aValueType = aValue.getValueType();