diff -r 3e43a95fa711 xml.schema.model/src/org/netbeans/modules/xml/schema/model/LocalElement.java --- a/xml.schema.model/src/org/netbeans/modules/xml/schema/model/LocalElement.java Tue Mar 30 19:16:55 2010 +0200 +++ b/xml.schema.model/src/org/netbeans/modules/xml/schema/model/LocalElement.java Tue Mar 30 22:20:07 2010 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common @@ -79,5 +79,5 @@ void setMinOccurs(Integer min); int getMinOccursDefault(); int getMinOccursEffective(); - + String getMinOccursText(); } diff -r 3e43a95fa711 xml.schema.model/src/org/netbeans/modules/xml/schema/model/impl/LocalElementBaseImpl.java --- a/xml.schema.model/src/org/netbeans/modules/xml/schema/model/impl/LocalElementBaseImpl.java Tue Mar 30 19:16:55 2010 +0200 +++ b/xml.schema.model/src/org/netbeans/modules/xml/schema/model/impl/LocalElementBaseImpl.java Tue Mar 30 22:20:07 2010 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common @@ -100,12 +100,16 @@ public NamedComponentReference getRef() { return resolveGlobalReference(GlobalElement.class, SchemaAttributes.REF); } - + + public String getMinOccursText() { + return getAttribute(SchemaAttributes.MIN_OCCURS); + } + /** * */ public Integer getMinOccurs() { - String s = getAttribute(SchemaAttributes.MIN_OCCURS); + String s = getMinOccursText(); return s == null ? null : Integer.valueOf(s); } diff -r 3e43a95fa711 xml.schema.ui.basic/src/org/netbeans/modules/xml/schema/ui/nodes/categorized/AdvancedLocalElementNode.java --- a/xml.schema.ui.basic/src/org/netbeans/modules/xml/schema/ui/nodes/categorized/AdvancedLocalElementNode.java Tue Mar 30 19:16:55 2010 +0200 +++ b/xml.schema.ui.basic/src/org/netbeans/modules/xml/schema/ui/nodes/categorized/AdvancedLocalElementNode.java Tue Mar 30 22:20:07 2010 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common @@ -82,7 +82,7 @@ if (max.equals("unbounded")) max="*"; - String decoration="["+element.getMinOccursEffective()+".."+max+"]"; + String decoration="["+element.getMinOccursText()+".."+max+"]"; if(element.getType()!=null && element.getType().get()!=null) { String supertypeLabel = NbBundle.getMessage( AdvancedLocalElementNode.class, "LBL_InstanceOf",