/** * Constructor for subclass use only. Ensures that AnnotatedObjects cannot be * created without at least a shortLabel and an owner specified. * * @param shortLabel The memorable label to identify this AnnotatedObject * * @throws NullPointerException thrown if either parameters are not specified */ protected AnnotatedObjectImpl( String shortLabel ) { //super call sets creation time data super(); this.shortLabel = AnnotatedObjectUtils.prepareShortLabel( shortLabel ); }
/** * Constructor for subclass use only. Ensures that AnnotatedObjects cannot be * created without at least a shortLabel and an owner specified. * * @param shortLabel The memorable label to identify this AnnotatedObject * * @throws NullPointerException thrown if either parameters are not specified */ protected AnnotatedObjectImpl( String shortLabel ) { //super call sets creation time data super(); this.shortLabel = AnnotatedObjectUtils.prepareShortLabel( shortLabel ); }
/** * Constructor for subclass use only. Ensures that AnnotatedObjects cannot be * created without at least a shortLabel and an owner specified. * * @param shortLabel The memorable label to identify this AnnotatedObject * @param owner The Institution which owns this AnnotatedObject * * @throws NullPointerException thrown if either parameters are not specified */ protected AnnotatedObjectImpl( String shortLabel, Institution owner ) { //super call sets creation time data super(); this.shortLabel = AnnotatedObjectUtils.prepareShortLabel( shortLabel ); setOwner( owner ); } // Class methods