/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: ElemDesc.java,v 1.2.4.1 2005/09/15 08:15:15 suresh_emailid Exp $
*/
/**
* This class has a series of flags (bit values) that describe an HTML element
*
* This class is public because XSLTC uses it, it is not a public API.
*
* @xsl.usage internal
*/
public final class ElemDesc
{
/** Bit flags to tell about this element type. */
private int m_flags;
/**
* Table of attribute names to integers, which contain bit flags telling about
* the attributes.
*/
/** Bit position if this element type is empty. */
/** Bit position if this element type is a flow. */
/** Bit position if this element type is a block. */
/** Bit position if this element type is a block form. */
/** Bit position if this element type is a block form field set. */
/** Bit position if this element type is CDATA. */
/** Bit position if this element type is PCDATA. */
/** Bit position if this element type is should be raw characters. */
/** Bit position if this element type should be inlined. */
/** Bit position if this element type is INLINEA. */
/** Bit position if this element type is an inline label. */
/** Bit position if this element type is a font style. */
/** Bit position if this element type is a phrase. */
/** Bit position if this element type is a form control. */
/** Bit position if this element type is ???. */
/** Bit position if this element type is ???. */
/** Bit position if this element type is an odd header element. */
/** Bit position if this element type is a head element (i.e. H1, H2, etc.) */
/** Bit position if this element type is a list. */
/** Bit position if this element type is a preformatted type. */
/** Bit position if this element type is whitespace sensitive. */
/** Bit position if this element type is a header element (i.e. HEAD). */
/** Bit position if this element is the "HTML" element */
/** Bit position if this attribute type is a URL. */
/** Bit position if this attribute type is an empty type. */
/**
* Construct an ElemDesc from a set of bit flags.
*
*
* @param flags Bit flags that describe the basic properties of this element type.
*/
{
}
/**
* Tell if this element type has the basic bit properties that are passed
* as an argument.
*
* @param flags Bit flags that describe the basic properties of interest.
*
* @return true if any of the flag bits are true.
*/
{
// int which = (m_flags & flags);
}
int getFlags() {
return m_flags;
}
/**
* Set an attribute name and it's bit properties.
*
*
* @param name non-null name of attribute, in upper case.
* @param flags flag bits.
*/
{
m_attrs = new StringToIntTable();
}
/**
* Tell if any of the bits of interest are set for a named attribute type.
*
* @param name non-null reference to attribute name, in any case.
* @param flags flag mask.
*
* @return true if any of the flags are set for the named attribute.
*/
{
: false;
}
}