This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
/*
* 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
void setMinOccurs(Integer min);
int getMinOccursDefault();
int getMinOccursEffective();
String getMinOccursText();
}
public NamedComponentReference<GlobalElement> 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);
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",