1 16 package org.apache.cocoon.components.repository.helpers; 17 18 21 public class PropertyName { 22 23 private String name; 24 private String namespace; 25 26 32 public PropertyName(String name, String namespace) { 33 this.name = name; 34 this.namespace = namespace; 35 } 36 37 42 public String getName() { 43 return this.name; 44 } 45 46 51 public String getNamespace() { 52 return this.namespace; 53 } 54 55 58 public int hashCode() { 59 return (this.namespace+":"+this.name).hashCode(); 60 } 61 62 65 public boolean equals(Object obj) { 66 return (obj != null && (obj instanceof PropertyName) 67 && this.name.equals(((PropertyName)obj).getName()) 68 && this.namespace.equals(((PropertyName)obj).getNamespace())); 69 } 70 71 } 72 | Popular Tags |