Methods Summary |
---|
public void | addElement(java.lang.String elementName, java.lang.Object value)
if (elementNames==null) {
elementNames = new LinkedList();
elementValues = new HashMap();
}
elementNames.add(elementName);
elementValues.put(elementName, value);
changed();
|
public DynamicAttributesDescriptor | getAttributes()
if (attributes==null) {
attributes = new DynamicAttributesDescriptor();
attributes.addObserver(this);
}
return attributes;
|
public java.lang.Object | getElement(java.lang.String elementName)
if (elementValues!=null) {
return elementValues.get(elementName);
}
return null;
|
public java.util.Iterator | getElementNames()
if (elementNames!=null) {
return elementNames.iterator();
}
return null;
|
public boolean | hasAttributes()
return attributes!=null;
|
public void | print(java.lang.StringBuffer toStringBuffer)
toStringBuffer.append("ExtensionElementDescriptor");
toStringBuffer.append("\n");
super.print(toStringBuffer);
for (Iterator itr = getElementNames();itr.hasNext();) {
toStringBuffer.append("\n Element=").append(getElement((String) itr.next()));
}
if (hasAttributes()) {
toStringBuffer.append("\n Attributes = ").append(getAttributes());
}
|
public void | update(java.util.Observable o, java.lang.Object arg)notification of changed from our attributes/elements
storage
setChanged();
notifyObservers();
|