/*
 * Copyright 2016 Space Dynamics Laboratory - Utah State University Research Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package edu.usu.sdl.openstorefront.service.io.parser;

import edu.usu.sdl.openstorefront.core.model.AttributeAll;
import java.util.ArrayList;
import java.util.List;

public abstract class BaseAttributeParser
		extends AbstractParser
{

	protected static final int MAX_BUCKET_SIZE = 100;
	protected List<AttributeAll> attributesAll = new ArrayList<>();

	@Override
	protected <T> List<T> getStorageBucket()
	{
		return (List<T>) attributesAll;
	}

	@Override
	protected int getMaxBucketSize()
	{
		return MAX_BUCKET_SIZE;
	}

	@Override
	protected void performStorage()
	{
		throw new UnsupportedOperationException("Not supported yet.");
	}

}

@@ -703,16 +703,208 @@
 arser;%0A%0A
+import edu.usu.sdl.openstorefront.common.util.OpenStorefrontConstant;%0Aimport edu.usu.sdl.openstorefront.core.entity.AttributeCode;%0Aimport edu.usu.sdl.openstorefront.core.entity.AttributeType;%0A
 import e
@@ -1193,16 +1193,720 @@
 t%3C%3E();%0A%0A
+%09protected AttributeAll defaultAttributeAll()%0A%09%7B%0A%09%09AttributeAll attributeAll = new AttributeAll();%0A%09%09AttributeType attributeType = new AttributeType();%0A%0A%09%09attributeType.setDescription(OpenStorefrontConstant.NOT_AVAILABLE);%0A%09%09attributeType.setVisibleFlg(Boolean.FALSE);%0A%09%09attributeType.setRequiredFlg(Boolean.FALSE);%0A%09%09attributeType.setArchitectureFlg(Boolean.FALSE);%0A%09%09attributeType.setImportantFlg(Boolean.FALSE);%0A%09%09attributeType.setAllowMultipleFlg(Boolean.FALSE);%0A%09%09attributeType.setHideOnSubmission(Boolean.FALSE);%0A%0A%09%09attributeAll.setAttributeType(attributeType);%0A%09%09List%3CAttributeCode%3E attributeCodes = new ArrayList%3C%3E();%0A%09%09attributeAll.setAttributeCodes(attributeCodes);%0A%0A%09%09return attributeAll;%0A%09%7D%0A%0A
 %09@Overri

Add defaultAttributeAll() method