fixed incorrect implementation of getDistributable(), setDistributable() flatten_srv_reg_root
authormkuchtiak@netbeans.org
Wed, 08 Dec 2004 07:56:08 +0000
changeset 5474a094c656f728
parent 5473 e4a06604edbd
child 5475 8839bb1f87b4
fixed incorrect implementation of getDistributable(), setDistributable()
api.web.dd/src/org/netbeans/modules/web/dd/impl/resources/web-app_2_4.mdd
     1.1 --- a/api.web.dd/src/org/netbeans/modules/web/dd/impl/resources/web-app_2_4.mdd	Wed Dec 08 03:17:23 2004 +0000
     1.2 +++ b/api.web.dd/src/org/netbeans/modules/web/dd/impl/resources/web-app_2_4.mdd	Wed Dec 08 07:56:08 2004 +0000
     1.3 @@ -75,13 +75,13 @@
     1.4                      else return values[0];
     1.5                  }
     1.6                  public void setDistributable(boolean value) {
     1.7 -                    if (value) setDistributable(new boolean[]{true});
     1.8 -                    else setDistributable(new boolean[]{});
     1.9 +                    if (value) setDistributable(new EmptyType[]{new EmptyType()});
    1.10 +                    else setDistributable(new EmptyType[]{});
    1.11                  }
    1.12                  public boolean isDistributable() {
    1.13 -                    boolean[] values = getDistributable();
    1.14 +                    EmptyType[] values = getDistributable();
    1.15                      if (values==null || values.length==0) return false;
    1.16 -                    else return values[0];
    1.17 +                    else return true;
    1.18                  }
    1.19                  public void setLocaleEncodingMappingList(org.netbeans.api.web.dd.LocaleEncodingMappingList value) {
    1.20                      if (value==null) setLocaleEncodingMappingList(new org.netbeans.api.web.dd.LocaleEncodingMappingList[]{});
    1.21 @@ -95,15 +95,6 @@
    1.22              </user-code>
    1.23  	</meta-element>
    1.24  	<meta-element>
    1.25 -		<dtd-name>emptyType</dtd-name>
    1.26 -		<namespace>http://java.sun.com/xml/ns/j2ee</namespace>
    1.27 -		<bean-name>EmptyType</bean-name>
    1.28 -                <implements> 
    1.29 -                    org.netbeans.api.web.dd.EmptyType
    1.30 -                </implements>
    1.31 -                <wrapper-class>boolean</wrapper-class>
    1.32 -	</meta-element>
    1.33 -	<meta-element>
    1.34              <dtd-name>param-valueType</dtd-name>
    1.35              <namespace>http://java.sun.com/xml/ns/j2ee</namespace>
    1.36              <bean-name>InitParam</bean-name>