001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.tools.ws.processor.model.java;
038:
039: /**
040: *
041: * @author WS Development Team
042: */
043: public class JavaStructureMember {
044:
045: public JavaStructureMember() {
046: }
047:
048: public JavaStructureMember(String name, JavaType type, Object owner) {
049: this (name, type, owner, false);
050: }
051:
052: public JavaStructureMember(String name, JavaType type,
053: Object owner, boolean isPublic) {
054:
055: this .name = name;
056: this .type = type;
057: this .owner = owner;
058: this .isPublic = isPublic;
059: constructorPos = -1;
060: }
061:
062: public String getName() {
063: return name;
064: }
065:
066: public void setName(String s) {
067: name = s;
068: }
069:
070: public JavaType getType() {
071: return type;
072: }
073:
074: public void setType(JavaType t) {
075: type = t;
076: }
077:
078: public boolean isPublic() {
079: return isPublic;
080: }
081:
082: public void setPublic(boolean b) {
083: isPublic = b;
084: }
085:
086: public boolean isInherited() {
087: return isInherited;
088: }
089:
090: public void setInherited(boolean b) {
091: isInherited = b;
092: }
093:
094: public String getReadMethod() {
095: return readMethod;
096: }
097:
098: public void setReadMethod(String readMethod) {
099: this .readMethod = readMethod;
100: }
101:
102: public String getWriteMethod() {
103: return writeMethod;
104: }
105:
106: public void setWriteMethod(String writeMethod) {
107: this .writeMethod = writeMethod;
108: }
109:
110: public String getDeclaringClass() {
111: return declaringClass;
112: }
113:
114: public void setDeclaringClass(String declaringClass) {
115: this .declaringClass = declaringClass;
116: }
117:
118: public Object getOwner() {
119: return owner;
120: }
121:
122: public void setOwner(Object owner) {
123: this .owner = owner;
124: }
125:
126: public int getConstructorPos() {
127: return constructorPos;
128: }
129:
130: public void setConstructorPos(int idx) {
131: constructorPos = idx;
132: }
133:
134: private String name;
135: private JavaType type;
136: private boolean isPublic = false;
137: private boolean isInherited = false;
138: private String readMethod;
139: private String writeMethod;
140: private String declaringClass;
141: private Object owner;
142: private int constructorPos;
143: }
|