1 16 17 package org.apache.cocoon.transformation.pagination; 18 19 25 public class ItemGroup { 26 27 private String name; 28 private String elementName; 29 private String elementURI; 30 31 public ItemGroup (String name, String elementURI, String elementName) { 32 this.name = name; 33 this.elementURI = elementURI; 34 this.elementName = elementName; 35 } 36 37 public boolean match(String elementName, String elementURI) { 38 return (this.elementName.equals(elementName) && this.elementURI.equals(elementURI)); 39 } 40 41 public boolean match(String elementURI) { 42 return this.elementURI.equals(elementURI); 43 } 44 45 public String getName() { 46 return this.name; 47 } 48 49 public String getElementURI() { 50 return this.elementURI; 51 } 52 53 public String getElementName() { 54 return this.elementName; 55 } 56 } 57 | Popular Tags |