Esempio n. 1
0
  public void setDefaults(Resource webDefaults) throws Exception {
    _webDefaultsRoot = new DefaultsDescriptor(webDefaults);
    _webDefaultsRoot.parse();
    if (_webDefaultsRoot.isOrdered()) {
      if (_ordering == null) _ordering = new Ordering.AbsoluteOrdering(this);

      List<String> order = _webDefaultsRoot.getOrdering();
      for (String s : order) {
        if (s.equalsIgnoreCase("others")) ((Ordering.AbsoluteOrdering) _ordering).addOthers();
        else ((Ordering.AbsoluteOrdering) _ordering).add(s);
      }
    }
  }
Esempio n. 2
0
  public void setWebXml(Resource webXml) throws Exception {
    _webXmlRoot = new WebDescriptor(webXml);
    _webXmlRoot.parse();
    _metaDataComplete = _webXmlRoot.getMetaDataComplete() == MetaDataComplete.True;

    if (_webXmlRoot.isOrdered()) {
      if (_ordering == null) _ordering = new Ordering.AbsoluteOrdering(this);

      List<String> order = _webXmlRoot.getOrdering();
      for (String s : order) {
        if (s.equalsIgnoreCase("others")) ((Ordering.AbsoluteOrdering) _ordering).addOthers();
        else ((Ordering.AbsoluteOrdering) _ordering).add(s);
      }
    }
  }