
com.sun.tools.txw2.model.WriterNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of txwc2 Show documentation
Show all versions of txwc2 Show documentation
JAXB schema generator.The *tool* to generate XML schema based on java classes.
/*
* Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.tools.txw2.model;
import org.xml.sax.Locator;
/**
* The {@link Node} that maps to the program element.
*
* @author Kohsuke Kawaguchi
*/
public abstract class WriterNode extends Node {
/**
* If this node is the sole child of a pattern block,
* this field points to its name.
*
*
* When the element names are in conflict, this can be used.
*/
protected String alternativeName;
public WriterNode(Locator location, Leaf leaf) {
super(location, leaf);
}
/**
* Declares the class without its contents.
*
* The first step of the code generation.
*/
abstract void declare(NodeSet nset);
/**
* Generates the contents.
*/
abstract void generate(NodeSet nset);
/**
* Prepares for the code generation.
*/
void prepare(NodeSet nset) {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy