Lines 1-7
Link Here
|
1 |
/* |
1 |
/* |
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 |
* |
3 |
* |
4 |
* Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. |
4 |
* Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved. |
5 |
* |
5 |
* |
6 |
* The contents of this file are subject to the terms of either the GNU |
6 |
* The contents of this file are subject to the terms of either the GNU |
7 |
* General Public License Version 2 only ("GPL") or the Common |
7 |
* General Public License Version 2 only ("GPL") or the Common |
Lines 81-88
Link Here
|
81 |
String max=element.getMaxOccursEffective(); |
81 |
String max=element.getMaxOccursEffective(); |
82 |
if (max.equals("unbounded")) |
82 |
if (max.equals("unbounded")) |
83 |
max="*"; |
83 |
max="*"; |
|
|
84 |
|
85 |
String minimum; |
86 |
try { |
87 |
minimum = Integer.toString(element.getMinOccursEffective()); |
88 |
} catch (NumberFormatException ex) { |
89 |
minimum = "<font color='#ff0000'>"+element.getMinOccursText()+"</font>"; |
90 |
} |
84 |
|
91 |
|
85 |
String decoration="["+element.getMinOccursEffective()+".."+max+"]"; |
92 |
String decoration="["+minimum+".."+max+"]"; |
86 |
if(element.getType()!=null && element.getType().get()!=null) { |
93 |
if(element.getType()!=null && element.getType().get()!=null) { |
87 |
String supertypeLabel = NbBundle.getMessage( |
94 |
String supertypeLabel = NbBundle.getMessage( |
88 |
AdvancedLocalElementNode.class, "LBL_InstanceOf", |
95 |
AdvancedLocalElementNode.class, "LBL_InstanceOf", |