/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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 General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* An element as described in a DTD using the ELEMENT construct.
* This is essentiall the description of a tag. It describes the
* type, content model, attributes, attribute types etc. It is used
* to correctly parse a document by the Parser.
*
* @see DTD
* @see AttributeList
* @author Arthur van Hoff
*/
public final
public int index;
public boolean oStart;
public boolean oEnd;
/**
* A field to store user data. Mostly used to store
* style sheets.
*/
Element() {
}
/**
* Create a new element.
*/
}
/**
* Get the name of the element.
*/
return name;
}
/**
* Return true if the start tag can be omitted.
*/
public boolean omitStart() {
return oStart;
}
/**
* Return true if the end tag can be omitted.
*/
public boolean omitEnd() {
return oEnd;
}
/**
* Get type.
*/
public int getType() {
return type;
}
/**
* Get content model
*/
return content;
}
/**
* Get the attributes.
*/
return atts;
}
/**
* Get index.
*/
public int getIndex() {
return index;
}
/**
* Check if empty
*/
public boolean isEmpty() {
}
/**
* Convert to a string.
*/
return name;
}
/**
* Get an attribute by name.
*/
return a;
}
}
return null;
}
/**
* Get an attribute by value.
*/
return a;
}
}
return null;
}
static {
}
}
}