public boolean add( ResourceProperty prop )
throws MetaDataViolationException
{
if ( !m_metaData.isOpenContent( ) )
{
throw new MetaDataViolationException( MSG.getMessage( Keys.NON_ANY_PROP_CANNOT_BE_REMOVED ) );
}
if ( m_propsMap.containsKey( prop.getMetaData( ).getName( ) ) )
{
throw new MetaDataViolationException( MSG.getMessage( Keys.PROP_DOC_ALREADY_CONTAINS_PROPERTY,
prop.getMetaData( ).getName( ) ) );
}
addProperty( prop );
return true;