blob: 77107e365ef3eb2a596f848c503569ad3ef30c50 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.library.layout.elements;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.epf.library.configuration.ConfigurationHelper;
import org.eclipse.epf.library.layout.ElementLayoutManager;
import org.eclipse.epf.library.layout.util.XmlElement;
import com.ibm.uma.MethodElement;
import com.ibm.uma.util.AssociationHelper;
/**
* The element layout for a Whitepaper.
*
* @author Kelvin Low
* @since 1.0
*/
public class WhitepaperLayout extends AbstractElementLayout {
public WhitepaperLayout() {
super();
}
public void init(ElementLayoutManager layoutManager, MethodElement element) {
super.__init(layoutManager, element);
}
public XmlElement getXmlElement(boolean includeReferences) {
XmlElement elementXml = super.getXmlElement(includeReferences);
if (includeReferences) {
List contentElements = new ArrayList();
ConfigurationHelper.calculateOppositeFeature(super.element, AssociationHelper.Concept_ContentElements, layoutManager.getConfiguration(), contentElements);
addReferences(elementXml, "contentElements", contentElements); //$NON-NLS-1$
}
return elementXml;
}
}