mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
30 lines
694 B
Plaintext
30 lines
694 B
Plaintext
class Element {
|
|
String id;
|
|
|
|
String getID() {
|
|
return id;
|
|
}
|
|
|
|
public String method(Element element) {
|
|
return getID() + element.getID();
|
|
}
|
|
|
|
public String staticMethod(Element element) {
|
|
StringBuffer buffer = new StringBuffer();
|
|
buffer.append(element.getID());
|
|
return buffer.toString();
|
|
}
|
|
static Element toXML(Element element){
|
|
X el= new X("El")
|
|
el.setAttribute("attr", element.getID());
|
|
return el;
|
|
}
|
|
}
|
|
|
|
class Usage {
|
|
public String staticMethod(Element element) {
|
|
StringBuffer buffer = new StringBuffer();
|
|
buffer.append(element.getID());
|
|
return buffer.toString();
|
|
}
|
|
} |