/**
 * AnyTypeNode.java This file was generated by XMLSpy 2006sp2 Enterprise
 * Edition. YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE OVERWRITTEN WHEN
 * YOU RE-RUN CODE GENERATION. Refer to the XMLSpy Documentation for further
 * details. http://www.altova.com/xmlspy
 */

package com.jmex.model.collada.xml;

import com.jmex.model.collada.types.SchemaString;
import com.jmex.model.collada.types.SchemaType;

public class AnyTypeNode extends Node {

    private static final long serialVersionUID = 1L;

    public AnyTypeNode(AnyTypeNode node) {
        super(node);
    }

    public AnyTypeNode(org.w3c.dom.Node node) {
        super(node);
    }

    public AnyTypeNode(org.w3c.dom.Document doc) {
        super(doc);
    }

    public AnyTypeNode(Document doc, String namespaceURI, String prefix,
            String name) {
        super(doc, namespaceURI, prefix, name);
    }

    public SchemaString getValue() {
        return new SchemaString(getDomNodeValue(dereference(domNode)));
    }

    public void setValue(SchemaType value) {
        setDomNodeValue(domNode, value.toString());
    }

    public void assign(SchemaType value) {
        setValue(value);
    }

    public void adjustPrefix() {
    }

    public void addTextNode(String value) throws Exception {
        appendDomChild(Text, null, null, value.toString());
    }

    public void addComment(String value) throws Exception {
        appendDomChild(Comment, null, null, value.toString());
    }

    public void addCDataNode(String value) throws Exception {
        appendDomChild(CData, null, null, value.toString());
    }

    public void addProcessingInstruction(String name, String value)
            throws Exception {
        appendDomChild(ProcessingInstruction, null, name.toString(), value
                .toString());
    }

    private org.w3c.dom.Node dereference(org.w3c.dom.Node node) {
        return node;
    }
}
