コード例 #1
0
 public boolean checkForLoop(String systemId) {
   // Return true if this stylesheet includes/imports itself
   if (_systemId != null && _systemId.equals(systemId)) {
     return true;
   }
   // Then check with any stylesheets that included/imported this one
   if (_parentStylesheet != null) return _parentStylesheet.checkForLoop(systemId);
   // Otherwise OK
   return false;
 }