001: /*
002: * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025:
026: package com.sun.tools.internal.ws.processor.model.java;
027:
028: /**
029: *
030: * @author WS Development Team
031: */
032: public class JavaStructureMember {
033:
034: public JavaStructureMember() {
035: }
036:
037: public JavaStructureMember(String name, JavaType type, Object owner) {
038: this (name, type, owner, false);
039: }
040:
041: public JavaStructureMember(String name, JavaType type,
042: Object owner, boolean isPublic) {
043:
044: this .name = name;
045: this .type = type;
046: this .owner = owner;
047: this .isPublic = isPublic;
048: constructorPos = -1;
049: }
050:
051: public String getName() {
052: return name;
053: }
054:
055: public void setName(String s) {
056: name = s;
057: }
058:
059: public JavaType getType() {
060: return type;
061: }
062:
063: public void setType(JavaType t) {
064: type = t;
065: }
066:
067: public boolean isPublic() {
068: return isPublic;
069: }
070:
071: public void setPublic(boolean b) {
072: isPublic = b;
073: }
074:
075: public boolean isInherited() {
076: return isInherited;
077: }
078:
079: public void setInherited(boolean b) {
080: isInherited = b;
081: }
082:
083: public String getReadMethod() {
084: return readMethod;
085: }
086:
087: public void setReadMethod(String readMethod) {
088: this .readMethod = readMethod;
089: }
090:
091: public String getWriteMethod() {
092: return writeMethod;
093: }
094:
095: public void setWriteMethod(String writeMethod) {
096: this .writeMethod = writeMethod;
097: }
098:
099: public String getDeclaringClass() {
100: return declaringClass;
101: }
102:
103: public void setDeclaringClass(String declaringClass) {
104: this .declaringClass = declaringClass;
105: }
106:
107: public Object getOwner() {
108: return owner;
109: }
110:
111: public void setOwner(Object owner) {
112: this .owner = owner;
113: }
114:
115: public int getConstructorPos() {
116: return constructorPos;
117: }
118:
119: public void setConstructorPos(int idx) {
120: constructorPos = idx;
121: }
122:
123: private String name;
124: private JavaType type;
125: private boolean isPublic = false;
126: private boolean isInherited = false;
127: private String readMethod;
128: private String writeMethod;
129: private String declaringClass;
130: private Object owner;
131: private int constructorPos;
132: }
|