1 16 package org.apache.cocoon.jcr.source; 17 18 import javax.jcr.Value; 19 20 import org.apache.excalibur.source.SourceValidity; 21 22 28 public class JCRNodeSourceValidity implements SourceValidity { 29 30 private Value value; 31 32 public JCRNodeSourceValidity(Value value) { 33 this.value = value; 34 } 35 36 public int isValid() { 37 return 0; 39 } 40 41 public int isValid(SourceValidity other) { 42 if (other instanceof JCRNodeSourceValidity) { 43 return ((JCRNodeSourceValidity) other).value.equals(this.value) ? 1 : -1; 45 } else { 46 return -1; 48 } 49 } 50 } 51 | Popular Tags |