Пример #1
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);
      }
    }
  }
 public boolean isMetaDataComplete(WebDescriptor d) {
   return (d != null && d.getMetaDataComplete() == MetaDataComplete.True);
 }