1/*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26package com.sun.tools.internal.ws.processor.model.java;
27
28/**
29 *
30 * @author WS Development Team
31 */
32public class JavaStructureMember {
33
34    public JavaStructureMember() {}
35
36    public JavaStructureMember(String name, JavaType type, Object owner) {
37        this(name, type, owner, false);
38    }
39    public JavaStructureMember(String name, JavaType type,
40        Object owner, boolean isPublic) {
41
42        this.name = name;
43        this.type = type;
44        this.owner = owner;
45        this.isPublic = isPublic;
46        constructorPos = -1;
47    }
48
49    public String getName() {
50        return name;
51    }
52
53    public void setName(String s) {
54        name = s;
55    }
56
57    public JavaType getType() {
58        return type;
59    }
60
61    public void setType(JavaType t) {
62        type = t;
63    }
64
65    public boolean isPublic() {
66        return isPublic;
67    }
68
69    public void setPublic(boolean b) {
70        isPublic = b;
71    }
72
73    public boolean isInherited() {
74        return isInherited;
75    }
76
77    public void setInherited(boolean b) {
78        isInherited = b;
79    }
80
81    public String getReadMethod() {
82        return readMethod;
83    }
84
85    public void setReadMethod(String readMethod) {
86        this.readMethod = readMethod;
87    }
88
89    public String getWriteMethod() {
90        return writeMethod;
91    }
92
93    public void setWriteMethod(String writeMethod) {
94        this.writeMethod = writeMethod;
95    }
96
97    public String getDeclaringClass() {
98        return declaringClass;
99    }
100    public void setDeclaringClass(String declaringClass) {
101        this.declaringClass = declaringClass;
102    }
103
104    public Object getOwner() {
105        return owner;
106    }
107
108    public void setOwner(Object owner) {
109        this.owner = owner;
110    }
111
112    public int getConstructorPos() {
113        return constructorPos;
114    }
115
116    public void setConstructorPos(int idx) {
117        constructorPos = idx;
118    }
119
120    private String name;
121    private JavaType type;
122    private boolean isPublic = false;
123    private boolean isInherited = false;
124    private String readMethod;
125    private String writeMethod;
126    private String declaringClass;
127    private Object owner;
128    private int constructorPos;
129}
130