/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2002-2010, Open Source Geospatial Foundation (OSGeo)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotools.se.v1_1.bindings;
import org.geotools.se.v1_1.SE;
import org.geotools.xml.*;
import org.w3c.dom.Document;
import javax.xml.namespace.QName;
/**
* Binding object for the element http://www.opengis.net/se:InlineContent.
*
* <p>
*
* <pre>
* <code>
* <xsd:element name="InlineContent" type="se:InlineContentType">
* <xsd:annotation>
* <xsd:documentation>
* "InlineContent" is XML- or base64-encoded encoded content in some
* externally-defined format that is included in an SE in-line.
* </xsd:documentation>
* </xsd:annotation>
* </xsd:element>
*
* </code>
* </pre>
*
* <pre>
* <code>
* <xsd:complexType mixed="true" name="InlineContentType">
* <xsd:sequence>
* <xsd:any minOccurs="0"/>
* </xsd:sequence>
* <xsd:attribute name="encoding" use="required">
* <xsd:simpleType>
* <xsd:restriction base="xsd:string">
* <xsd:enumeration value="xml"/>
* <xsd:enumeration value="base64"/>
* </xsd:restriction>
* </xsd:simpleType>
* </xsd:attribute>
* </xsd:complexType>
*
* </code>
* </pre>
*
* </p>
*
* @generated
*
* @source $URL: http://svn.osgeo.org/geotools/trunk/modules/extension/xsd/xsd-sld/src/main/java/org/geotools/se/v1_1/bindings/InlineContentBinding.java $
*/
public class InlineContentBinding extends AbstractComplexBinding {
/**
* @generated
*/
public QName getTarget() {
return SE.InlineContent;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Class getType() {
return InlineContent.class;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated modifiable
*/
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
// String encoding = (String) node.getAttributeValue("encoding");
// if ("xml".equalsIgnoreCase(encoding)) {
// Document dom = (Document) node.get
//
// } else if ("base64".equalsIgnoreCase(encoding)) {
// String base64 = (String) node.getValue();
// } else {
// throw new IllegalArgumentException("Encoding " + encoding + " not supported");
// }
return null;
}
}