001/* 002 * Copyright (c) 2004-2012, Willem Cazander 003 * All rights reserved. 004 * 005 * Redistribution and use in source and binary forms, with or without modification, are permitted provided 006 * that the following conditions are met: 007 * 008 * * Redistributions of source code must retain the above copyright notice, this list of conditions and the 009 * following disclaimer. 010 * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and 011 * the following disclaimer in the documentation and/or other materials provided with the distribution. 012 * 013 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 014 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 015 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 016 * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 017 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 018 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 019 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 020 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 021 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 022 */ 023 024package org.x4o.xml.impl; 025 026import org.x4o.xml.element.AbstractElementClass; 027 028/** 029 * The default ElementClass to store the Element information. 030 * 031 * @author Willem Cazander 032 * @version 1.0 Feb 19, 2007 033 */ 034public class DefaultElementClass extends AbstractElementClass { 035 036 /** 037 * Creates an default DefaultElementClass. 038 */ 039 public DefaultElementClass() { 040 } 041 042 /** 043 * Creates config-ed ElementClass. 044 * @param tag The tag of this ElementClass. 045 * @param objectClass The objectClass of the ElementClass. 046 */ 047 public DefaultElementClass(String tag,Class<?> objectClass) { 048 this(tag,objectClass,null); 049 } 050 051 /** 052 * Creates config-ed ElementClass. 053 * @param tag The tag of this ElementClass. 054 * @param objectClass The objectClass of the ElementClass. 055 * @param elementClass The elementClass of this ElementClass. 056 */ 057 public DefaultElementClass(String tag,Class<?> objectClass,Class<?> elementClass) { 058 setTag(tag); 059 setObjectClass(objectClass); 060 setElementClass(elementClass); 061 } 062}