1 package com.icl.saxon.om; 2 3 6 7 public class EmptyEnumeration implements AxisEnumeration { 8 9 private static EmptyEnumeration instance = new EmptyEnumeration(); 10 11 14 15 public static EmptyEnumeration getInstance() { 16 return instance; 17 } 18 19 public boolean hasMoreElements() { 20 return false; 21 } 22 23 public NodeInfo nextElement() { 24 return null; 25 } 26 27 public boolean isSorted() { 28 return true; 29 } 30 31 public boolean isReverseSorted() { 32 return true; 33 } 34 35 public boolean isPeer() { 36 return true; 37 } 38 39 public int getLastPosition() { 40 return 0; 41 } 42 } 43 44 | Popular Tags |