/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2013-2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/* eslint-disable */
import $ from 'jquery'
import md5 from 'blueimp-md5'
/*
* Adds a background color to the element called on and adds the first character
* of the passed in string. This string is also the seed for the generation of
* the background color.
*
* You have following HTML:
*
*
blob: 2364aaeb0ebcb4ddb9d275576e092812ae61dfeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* PARC initial implementation
* ******************************************************************/
package answers;
import figures.Group;
import figures.FigureElement;
public aspect Answer2c {
before(FigureElement newValue, Group g):
call(void Group.add(FigureElement))
&& args(newValue)
&& target(g) {
if (newValue == null) {
throw new IllegalArgumentException("null not allowed");
}
if (newValue == g) {
throw new IllegalArgumentException("self not allowed");
}
}
}
|