123124125126127128129130131132133
switch (positionArray[i]) { case BACKGROUND_COLOR: { if (colorFound) { throw unexpectedValue(value, fobj); } collection.addItem(new PdBackgroundColor(fobj, propertyFullName, tokenList.get(i))); colorFound = true; break; } case BACKGROUND_IMAGE: {
132133134135136137138139140141142
} case BACKGROUND_IMAGE: { if (imageFound) { throw unexpectedValue(value, fobj); } collection.addItem(new PdBackgroundImage(fobj, propertyFullName, tokenList.get(i))); imageFound = true; break; } case BACKGROUND_REPEAT: {
141142143144145146147148149150151
} case BACKGROUND_REPEAT: { if (repeatFound) { throw unexpectedValue(value, fobj); } collection.addItem(new PdBackgroundRepeat(fobj, propertyFullName, tokenList.get(i))); repeatFound = true; break; } case BACKGROUND_ATTACHMENT: {
150151152153154155156157158159160
} case BACKGROUND_ATTACHMENT: { if (attachmentFound) { throw unexpectedValue(value, fobj); } collection.addItem(new PdBackgroundAttachment(fobj, propertyFullName, tokenList.get(i))); attachmentFound = true; break; } case BACKGROUND_POSITION: {
165166167168169170171172173174175
if (i < positionArray.length && positionArray[i + 1] == FoProperty.BACKGROUND_POSITION) { propertyInput.concat(" " + tokenList.get(i + 1)); i++; } collection.addItem(new PdBackgroundPosition(fobj, propertyFullName, tokenList.get(i))); positionFound = true; break; } }