1 23 24 package org.infoglue.cms.entities.management; 25 26 import java.util.ArrayList ; 27 import java.util.Iterator ; 28 import java.util.LinkedHashMap ; 29 import java.util.List ; 30 import java.util.Map ; 31 32 35 36 public class ContentTypeAttribute 37 { 38 50 51 private int position = 0; 52 private String name = ""; 53 private String inputType = ""; 54 private Map contentTypeAttributeParameters = new LinkedHashMap (); 55 private List validators = new ArrayList (); 56 57 public ContentTypeAttribute() 58 { 59 } 60 61 public int getPosition() 62 { 63 return this.position; 64 } 65 66 public void setPosition(int position) 67 { 68 this.position = position; 69 } 70 71 public String getName() 72 { 73 return this.name; 74 } 75 76 public void setName(String name) 77 { 78 this.name = name; 79 } 80 81 public String getInputType() 82 { 83 return this.inputType; 84 } 85 86 public void setInputType(String inputType) 87 { 88 this.inputType = inputType; 89 } 90 91 public void putContentTypeAttributeParameter(String key, ContentTypeAttributeParameter contentTypeAttributeParameter) 92 { 93 this.contentTypeAttributeParameters.put(key, contentTypeAttributeParameter); 94 } 95 96 public ContentTypeAttributeParameter getContentTypeAttribute(String key) 97 { 98 return (ContentTypeAttributeParameter)contentTypeAttributeParameters.get(key); 99 } 100 101 public List getContentTypeAttributeParameters() 102 { 103 List extraParameters = new ArrayList (); 104 for (Iterator i = contentTypeAttributeParameters.entrySet().iterator(); i.hasNext();) 105 { 106 Map.Entry e = (Map.Entry ) i.next(); 107 extraParameters.add(e); 108 } 109 110 return extraParameters; 111 } 112 113 public List getValidators() 114 { 115 return validators; 116 } 117 } | Popular Tags |