1 17 package org.alfresco.repo.action; 18 19 import java.io.Serializable ; 20 21 import org.alfresco.service.cmr.action.ParameterDefinition; 22 import org.alfresco.service.namespace.QName; 23 24 29 public class ParameterDefinitionImpl implements ParameterDefinition, Serializable 30 { 31 34 private static final long serialVersionUID = 3976741384558751799L; 35 36 39 private String name; 40 41 44 private QName type; 45 46 49 private String displayLabel; 50 51 54 private boolean isMandatory = false; 55 56 63 public ParameterDefinitionImpl( 64 String name, 65 QName type, 66 boolean isMandatory, 67 String displayLabel) 68 { 69 this.name = name; 70 this.type = type; 71 this.displayLabel = displayLabel; 72 this.isMandatory = isMandatory; 73 } 74 75 78 public String getName() 79 { 80 return this.name; 81 } 82 83 86 public QName getType() 87 { 88 return this.type; 89 } 90 91 94 public boolean isMandatory() 95 { 96 return this.isMandatory; 97 } 98 99 102 public String getDisplayLabel() 103 { 104 return this.displayLabel; 105 } 106 } 107 | Popular Tags |