001: /*
002: * Copyright 2001-2006 C:1 Financial Services GmbH
003: *
004: * This software is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License Version 2.1, as published by the Free Software Foundation.
007: *
008: * This software is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011: * Lesser General Public License for more details.
012: *
013: * You should have received a copy of the GNU Lesser General Public
014: * License along with this library; if not, write to the Free Software
015: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
016: */
017:
018: package de.finix.contelligent.xml.elements;
019:
020: import java.util.LinkedList;
021: import java.util.List;
022:
023: /**
024: * <code>TypeElement</code> contains full desctipion of a type. An instance of
025: * this class creates 'digester' and sets all its properties.
026: */
027: public class TypeElement {
028: private String name;
029:
030: private String group;
031:
032: private String classImpl;
033:
034: private boolean isAbstract;
035:
036: private String extendType;
037:
038: private String extendClassImpl;
039:
040: private String restrictType;
041:
042: private List propertyElementList = new LinkedList();
043:
044: private TypeMetainfoElement metaInfo;
045:
046: private String blueprintPath;
047:
048: public void setBlueprintPath(String blueprintPath) {
049: this .blueprintPath = blueprintPath;
050: }
051:
052: public String getBlueprintPath() {
053: return blueprintPath;
054: }
055:
056: public void setExtendType(String extendType) {
057: this .extendType = extendType;
058: }
059:
060: public String getExtendType() {
061: return extendType;
062: }
063:
064: public void setExtendClassImpl(String extendClassImpl) {
065: this .extendClassImpl = extendClassImpl;
066: }
067:
068: public String getExtendClassImpl() {
069: return extendClassImpl;
070: }
071:
072: public void setRestrictType(String restrictType) {
073: this .restrictType = restrictType;
074: }
075:
076: public String getRestrictType() {
077: return restrictType;
078: }
079:
080: public void setName(String name) {
081: this .name = name;
082: }
083:
084: public String getName() {
085: return name;
086: }
087:
088: public void setGroup(String group) {
089: this .group = group;
090: }
091:
092: public String getGroup() {
093: return group;
094: }
095:
096: public void setClassImpl(String classImpl) {
097: this .classImpl = classImpl;
098: }
099:
100: public String getClassImpl() {
101: return classImpl;
102: }
103:
104: public void setIsAbstract(String isAbstract) {
105: this .isAbstract = Boolean.valueOf(isAbstract).booleanValue();
106: }
107:
108: public void isAbstract(boolean isAbstract) {
109: this .isAbstract = isAbstract;
110: }
111:
112: public String getIsAbstract() {
113: return String.valueOf(isAbstract);
114: }
115:
116: public boolean isAbstract() {
117: return isAbstract;
118: }
119:
120: public void addPropertyElement(
121: TypePropertyElement typePropertyElement) {
122: propertyElementList.add(typePropertyElement);
123: }
124:
125: public List getPropertyElementList() {
126: return propertyElementList;
127: }
128:
129: public void setMetainfoElement(TypeMetainfoElement metaInfo) {
130: this .metaInfo = metaInfo;
131: }
132:
133: public TypeMetainfoElement getMetainfoElement() {
134: return metaInfo;
135: }
136:
137: }
|