/***************************** BEGIN LICENSE BLOCK ***************************

 The contents of this file are Copyright (C) 2011 Sensia Software LLC.
 All Rights Reserved.
 
 Contributor(s): 
    Alexandre Robin <alex.robin@sensiasoftware.com>
 
 ******************************* END LICENSE BLOCK ***************************/

package com.sensia.tools.client.swetools.editors.sensorml.renderer.advanced;

import com.sensia.relaxNG.RNGElement;
import com.sensia.relaxNG.RNGTagVisitor;
import com.sensia.tools.client.swetools.editors.sensorml.panels.IPanel;
import com.sensia.tools.client.swetools.editors.sensorml.panels.IRefreshHandler;
import com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.swe.SWEEditDescriptionPanel;
import com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.swe.SWEEditIdentifierPanel;
import com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.swe.SWEEditLabelPanel;
import com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.swe.SWEEditCategoryPanel;
import com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.swe.SWEEditQuantityPanel;
import com.sensia.tools.client.swetools.editors.sensorml.renderer.editor.panels.swe.SWEEditQuantityRangePanel;

/**
 * <p>
 * <b>Title:</b> RNGRenderer
 * </p>
 * 
 * <p>
 * <b>Description:</b><br/>
 * Renders content of an RNG grammar describing SWE Common data components using
 * GWT widgets
 * </p>
 * 
 * <p>
 * Copyright (c) 2011
 * </p>.
 *
 * @author Alexandre Robin
 * @date Aug 27, 2011
 */
public class AdvancedRendererSWE extends AdvancedRendererRNG {
	
	/** The Constant SWE_NS_1. */
	protected final static String SWE_NS_1 = "http://www.opengis.net/swe/1.0.1";
	
	/** The Constant SWE_NS_2. */
	protected final static String SWE_NS_2 = "http://www.opengis.net/swe/2.0";

	/**
	 * Instantiates a new RNG renderer swe.
	 */
	public AdvancedRendererSWE() {}
	
}
@@ -1931,12 +1931,885 @@
 SWE() %7B%7D
+%0A%0A%09/* (non-Javadoc)%0A%09 * @see com.sensia.tools.client.swetools.editors.sensorml.renderer.RNGRenderer#visit(com.sensia.relaxNG.RNGElement)%0A%09 */%0A%09@Override%0A%09public void visit(RNGElement elt) %7B%0A%09%09final IPanel%3CRNGElement%3E widget = getPanel(elt);%0A%09%09if(widget != null) %7B%0A%09%09%09pushAndVisitChildren(widget, elt.getChildren());%0A%09%09%7D else %7B%0A%09%09%09super.visit(elt);%0A%09%09%7D%0A%09%7D%0A%09%0A%09/* (non-Javadoc)%0A%09 * @see com.sensia.tools.client.swetools.editors.sensorml.renderer.RNGRenderer#getWidget(java.lang.String)%0A%09 */%0A%09protected IPanel%3CRNGElement%3E getPanel(RNGElement elt) %7B%0A%09%09final String name = elt.getName();%0A%09%09%0A%09%09if(name.equalsIgnoreCase(%22description%22)) %7B%0A%09%09%09return new SWEEditDescriptionPanel(elt);%0A%09%09%7D else if(name.equalsIgnoreCase(%22label%22)) %7B%0A%09%09%09return new SWEEditLabelPanel(elt);%0A%09%09%7D else if(name.equalsIgnoreCase(%22identifier%22)) %7B%0A%09%09%09return new SWEEditIdentifierPanel(elt);%0A%09%09%7D%0A%09%09return null;%0A%09%7D
 %0A%09%0A%7D

Add support of swe:{description,identifier,label} for advanced renderer