Révision 3179
tmp/org.txm.core/src/java/org/txm/metadatas/Metadata.java (revision 3179) | ||
---|---|---|
31 | 31 |
|
32 | 32 |
import org.w3c.dom.Element; |
33 | 33 |
|
34 |
// TODO: Auto-generated Javadoc |
|
35 | 34 |
/** |
36 | 35 |
* The Class Metadata: contains a metadata declaration. |
37 | 36 |
*/ |
... | ... | |
70 | 69 |
longname = (String) n.attribute("longname"); //$NON-NLS-1$ |
71 | 70 |
type = (String) n.attribute("type"); //$NON-NLS-1$ |
72 | 71 |
sortBy = (String) n.attribute("sortBy"); //$NON-NLS-1$ |
73 |
if(n.attribute("selection") != null) //$NON-NLS-1$ |
|
72 |
if (n.attribute("selection") != null) //$NON-NLS-1$
|
|
74 | 73 |
selection = Boolean.parseBoolean((String) n.attribute("selection")); //$NON-NLS-1$ |
75 |
if(n.attribute("partition") != null) //$NON-NLS-1$ |
|
74 |
if (n.attribute("partition") != null) //$NON-NLS-1$
|
|
76 | 75 |
partition = Boolean.parseBoolean((String) n.attribute("partition")); //$NON-NLS-1$ |
77 |
if(n.attribute("display") != null) //$NON-NLS-1$ |
|
76 |
if (n.attribute("display") != null) //$NON-NLS-1$
|
|
78 | 77 |
display = Boolean.parseBoolean((String) n.attribute("display")); //$NON-NLS-1$ |
79 |
if(n.attribute("open") != null) //$NON-NLS-1$ |
|
78 |
if (n.attribute("open") != null) //$NON-NLS-1$
|
|
80 | 79 |
open = Boolean.parseBoolean((String) n.attribute("open")); //$NON-NLS-1$ |
81 |
if(n.attribute("colwidth") != null) //$NON-NLS-1$ |
|
80 |
if (n.attribute("colwidth") != null) //$NON-NLS-1$
|
|
82 | 81 |
colwidth = Integer.parseInt((String) n.attribute("colwidth")); //$NON-NLS-1$ |
83 | 82 |
} |
84 | 83 |
|
... | ... | |
93 | 92 |
* @param display the display |
94 | 93 |
*/ |
95 | 94 |
public Metadata(String id, String shortname, String longname, String type, String sortBy, |
96 |
boolean selection, boolean partition, boolean display, boolean open, int colwidth) |
|
97 |
{ |
|
95 |
boolean selection, boolean partition, boolean display, boolean open, int colwidth) {
|
|
96 |
|
|
98 | 97 |
this.id = id; |
99 | 98 |
this.shortname = shortname; |
100 | 99 |
this.longname = longname; |
Formats disponibles : Unified diff