View Javadoc

1   ////////////////////////////////////////////////////////////////////////////////
2   // MillScript-XML: an Open Spice interpreter and batch website creation tool
3   // Copyright (C) 2005 Kevin Rogers
4   //
5   // This file is part of MillScript-XML.
6   //
7   // MillScript-XML is free software; you can redistribute it and/or modify it under
8   // the terms of the GNU General Public License as published by the Free
9   // Software Foundation; either version 2 of the License, or (at your option)
10  // any later version.
11  //
12  // MillScript-XML is distributed in the hope that it will be useful, but WITHOUT
13  // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15  // more details.
16  //
17  // You should have received a copy of the GNU General Public License along with
18  // MillScript-XML; if not, write to the Free Software Foundation, Inc., 59 Temple
19  // Place, Suite 330, Boston, MA  02111-1307  USA
20  ////////////////////////////////////////////////////////////////////////////////
21  package org.millscript.commons.xml.atttype;
22  
23  import org.millscript.commons.xml.api.Name;
24  import org.millscript.commons.xml.api.atttype.EntitiesAttDef;
25  import org.millscript.commons.xml.tokenizer.AbstractXmlTokenizerImpl;
26  
27  /**
28   * This class provides a default implementation of the
29   * <code>EntitiesAttDef</code> interface, to handle ENTITIES attribute
30   * definitions in the DTD.
31   */
32  public class EntitiesAttDefImpl extends AttDefImpl implements EntitiesAttDef {
33  
34      /**
35       * Constructs a new ENTITIES attribute definition object with the specified
36       * <code>Name</code>, reading the default mode and value from the specified
37       * XML tokenizer.
38       *
39       * @param an    the attributes <code>Name</code>
40       * @param xt    the XML tokenizer to obtain the default mode and value from
41       */
42      public EntitiesAttDefImpl( final Name an, final AbstractXmlTokenizerImpl xt ) {
43          super( an, xt );
44      }
45  
46      /**
47       * Constructs a new ENTITIES attribute definition object with the specified
48       * <code>Name</code>, default mode and default value.
49       *
50       * @param an    the attributes <code>Name</code>
51       * @param dm    the default mode for the attribute
52       * @param dv    the default value for the attribute
53       */
54      public EntitiesAttDefImpl( final Name an, final String dv, final String dm ) {
55          super( an, dv, dm );
56      }
57  
58  }