lib/taskjuggler/PropertySet.rb in taskjuggler-3.5.0 vs lib/taskjuggler/PropertySet.rb in taskjuggler-3.6.0
- old
+ new
@@ -1,12 +1,12 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = PropertySet.rb -- The TaskJuggler III Project Management Software
#
-# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
-# by Chris Schlaeger <chris@linux.com>
+# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
+# by Chris Schlaeger <cs@taskjuggler.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
@@ -135,9 +135,13 @@
# Return whether or not the attribute was user defined.
def userDefined?(attrId)
return false if @attributeDefinitions[attrId].nil?
@attributeDefinitions[attrId].userDefined
+ end
+
+ def listAttribute?(attrId)
+ (ad = @attributeDefinitions[attrId]) && ad.objClass.isList?
end
# Return the default value of the attribute.
def defaultValue(attrId)
return nil if @attributeDefinitions[attrId].nil?