<!ELEMENT extension (javaLogicalStructure)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT javaLogicalStructure (variable)>
<!ATTLIST javaLogicalStructure
type CDATA #REQUIRED
subtypes (true | false) "true"
value CDATA #IMPLIED
description CDATA #REQUIRED>
true
.<!ELEMENT variable EMPTY>
<!ATTLIST variable
name CDATA #REQUIRED
value CDATA #REQUIRED>
Tämän tyypin objektin loogisen arvon yksi muuttuja.
Edellisessä esimerkissä Map käännetään merkintöihinsä ja Map$Entry käännetään avaimeensa ja arvoonsa.<extension point=
"org.eclipse.jdt.debug.javaLogicalStructures"
>
<javaLogitalStructure subtypes=
"true"
value=
"return entrySet().toArray();"
type=
"java.util.Map"
/>
<javaLogitalStructure subtypes=
"true"
type=
"java.util.Map$Entry"
>
<variable value=
"return getKey();"
name=
"key"
/>
<variable value=
"return getValue();"
name=
"value"
/>
</javaLogitalStructure>
</extension>
Copyright (c) 2004, 2005 IBM Corporation and others.
All Rights Reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html