|
Lines 15-28
Link Here
|
| 15 |
* |
15 |
* |
| 16 |
*/ |
16 |
*/ |
| 17 |
|
17 |
|
| 18 |
public class CustomizationDataImpl implements ICustomizationData, IAdaptable |
18 |
public class CustomizationDataImpl implements IWritableCustomizationData, IAdaptable |
| 19 |
{ |
19 |
{ |
| 20 |
private TagIdentifier tagIdentifier; |
20 |
private TagIdentifier tagIdentifier; |
| 21 |
private AttributeData _attrs; |
21 |
private AttributeData _attrs; |
| 22 |
private ChildrenData childrenData; |
22 |
private ChildrenData childrenData; |
| 23 |
private ParentData parentData; |
23 |
private ParentData parentData; |
|
|
24 |
|
| 24 |
|
25 |
|
| 25 |
|
26 |
/** |
|
|
27 |
* Constructor. |
| 28 |
* |
| 29 |
* @param target |
| 30 |
* Tag identifier for the tag whose customization data this is |
| 31 |
* |
| 32 |
*/ |
| 26 |
public CustomizationDataImpl(final TagIdentifier target) |
33 |
public CustomizationDataImpl(final TagIdentifier target) |
| 27 |
{ |
34 |
{ |
| 28 |
tagIdentifier = target; |
35 |
tagIdentifier = target; |
|
Lines 32-37
Link Here
|
| 32 |
} |
39 |
} |
| 33 |
|
40 |
|
| 34 |
|
41 |
|
|
|
42 |
/* (non-Javadoc) |
| 43 |
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) |
| 44 |
*/ |
| 35 |
public Object getAdapter(Class adapter) |
45 |
public Object getAdapter(Class adapter) |
| 36 |
{ |
46 |
{ |
| 37 |
if (ICustomizationData.class.equals(adapter)) |
47 |
if (ICustomizationData.class.equals(adapter)) |
|
Lines 48-59
Link Here
|
| 48 |
//------------------------------------------------------------ |
58 |
//------------------------------------------------------------ |
| 49 |
|
59 |
|
| 50 |
|
60 |
|
| 51 |
/* |
61 |
/* (non-Javadoc) |
| 52 |
* (non-Javadoc) |
62 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData#getTagIdentifier() |
| 53 |
* |
|
|
| 54 |
* @see |
| 55 |
* org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData |
| 56 |
* #getTagIdentifier() |
| 57 |
*/ |
63 |
*/ |
| 58 |
public TagIdentifier getTagIdentifier() |
64 |
public TagIdentifier getTagIdentifier() |
| 59 |
{ |
65 |
{ |
|
Lines 61-66
Link Here
|
| 61 |
} |
67 |
} |
| 62 |
|
68 |
|
| 63 |
|
69 |
|
|
|
70 |
/* (non-Javadoc) |
| 71 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#setTagIdentifier(org.eclipse.jst.jsf.common.dom.TagIdentifier) |
| 72 |
*/ |
| 64 |
public void setTagIdentifier(TagIdentifier tagId) |
73 |
public void setTagIdentifier(TagIdentifier tagId) |
| 65 |
{ |
74 |
{ |
| 66 |
this.tagIdentifier = tagId; |
75 |
this.tagIdentifier = tagId; |
|
Lines 72-83
Link Here
|
| 72 |
//------------------------------------------------------------ |
81 |
//------------------------------------------------------------ |
| 73 |
|
82 |
|
| 74 |
|
83 |
|
| 75 |
/* |
84 |
/* (non-Javadoc) |
| 76 |
* (non-Javadoc) |
85 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData#getAttributeData() |
| 77 |
* |
|
|
| 78 |
* @see |
| 79 |
* org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData |
| 80 |
* #getAttributeData() |
| 81 |
*/ |
86 |
*/ |
| 82 |
public final AttributeData getAttributeData() |
87 |
public final AttributeData getAttributeData() |
| 83 |
{ |
88 |
{ |
|
Lines 85-96
Link Here
|
| 85 |
} |
90 |
} |
| 86 |
|
91 |
|
| 87 |
|
92 |
|
|
|
93 |
/* (non-Javadoc) |
| 94 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#setAttributes(org.eclipse.jst.pagedesigner.itemcreation.customizer.AttributeData) |
| 95 |
*/ |
| 88 |
public void setAttributes(AttributeData attrs) |
96 |
public void setAttributes(AttributeData attrs) |
| 89 |
{ |
97 |
{ |
| 90 |
_attrs = attrs; |
98 |
_attrs = attrs; |
| 91 |
} |
99 |
} |
| 92 |
|
100 |
|
| 93 |
|
101 |
|
|
|
102 |
/* (non-Javadoc) |
| 103 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#addAttribute(java.lang.String, java.lang.String) |
| 104 |
*/ |
| 94 |
public void addAttribute(String attributeName, String attributeValue) |
105 |
public void addAttribute(String attributeName, String attributeValue) |
| 95 |
{ |
106 |
{ |
| 96 |
getAttributeData().addAttribute(attributeName, attributeValue); |
107 |
getAttributeData().addAttribute(attributeName, attributeValue); |
|
Lines 102-113
Link Here
|
| 102 |
//------------------------------------------------------------ |
113 |
//------------------------------------------------------------ |
| 103 |
|
114 |
|
| 104 |
|
115 |
|
| 105 |
/* |
116 |
/* (non-Javadoc) |
| 106 |
* (non-Javadoc) |
117 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData#getChildrenData() |
| 107 |
* |
|
|
| 108 |
* @see |
| 109 |
* org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData |
| 110 |
* #getChildrenData() |
| 111 |
*/ |
118 |
*/ |
| 112 |
public final ChildrenData getChildrenData() |
119 |
public final ChildrenData getChildrenData() |
| 113 |
{ |
120 |
{ |
|
Lines 115-126
Link Here
|
| 115 |
} |
122 |
} |
| 116 |
|
123 |
|
| 117 |
|
124 |
|
|
|
125 |
/* (non-Javadoc) |
| 126 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#setChildrenData(org.eclipse.jst.pagedesigner.itemcreation.customizer.ChildrenData) |
| 127 |
*/ |
| 118 |
public void setChildrenData(ChildrenData data) |
128 |
public void setChildrenData(ChildrenData data) |
| 119 |
{ |
129 |
{ |
| 120 |
childrenData = data; |
130 |
childrenData = data; |
| 121 |
} |
131 |
} |
| 122 |
|
132 |
|
| 123 |
|
133 |
|
|
|
134 |
/* (non-Javadoc) |
| 135 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#addChildrenData(org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData) |
| 136 |
*/ |
| 124 |
public void addChildrenData (ICustomizationData childrenData) |
137 |
public void addChildrenData (ICustomizationData childrenData) |
| 125 |
{ |
138 |
{ |
| 126 |
getChildrenData().add(childrenData); |
139 |
getChildrenData().add(childrenData); |
|
Lines 132-143
Link Here
|
| 132 |
//------------------------------------------------------------ |
145 |
//------------------------------------------------------------ |
| 133 |
|
146 |
|
| 134 |
|
147 |
|
| 135 |
/* |
148 |
/* (non-Javadoc) |
| 136 |
* (non-Javadoc) |
149 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData#getParentData() |
| 137 |
* |
|
|
| 138 |
* @see |
| 139 |
* org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData |
| 140 |
* #getParentData() |
| 141 |
*/ |
150 |
*/ |
| 142 |
public final ParentData getParentData() |
151 |
public final ParentData getParentData() |
| 143 |
{ |
152 |
{ |
|
Lines 145-163
Link Here
|
| 145 |
} |
154 |
} |
| 146 |
|
155 |
|
| 147 |
|
156 |
|
|
|
157 |
/* (non-Javadoc) |
| 158 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#setParentData(org.eclipse.jst.pagedesigner.itemcreation.customizer.ParentData) |
| 159 |
*/ |
| 148 |
public void setParentData(ParentData parentData) |
160 |
public void setParentData(ParentData parentData) |
| 149 |
{ |
161 |
{ |
| 150 |
this.parentData = parentData; |
162 |
this.parentData = parentData; |
| 151 |
} |
163 |
} |
| 152 |
|
164 |
|
| 153 |
|
165 |
|
| 154 |
/** |
166 |
/* (non-Javadoc) |
| 155 |
* Attaches a parent to a tag (The customization data for a parent is added |
167 |
* @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IWritableCustomizationData#addParentData(org.eclipse.jst.pagedesigner.itemcreation.customizer.ICustomizationData) |
| 156 |
* to the tag's customization data). The oldest parent (outermost container |
|
|
| 157 |
* tag) should be attached (added) first. |
| 158 |
* |
| 159 |
* @param parentData |
| 160 |
* Parent customization data |
| 161 |
*/ |
168 |
*/ |
| 162 |
public void addParentData (ICustomizationData parentData) |
169 |
public void addParentData (ICustomizationData parentData) |
| 163 |
{ |
170 |
{ |