1 17 package org.alfresco.repo.importer.view; 18 19 import java.util.HashMap ; 20 import java.util.Map ; 21 22 import org.alfresco.service.namespace.QName; 23 24 25 30 public class MetaDataContext extends ElementContext 31 { 32 33 private Map <QName, String > properties = new HashMap <QName, String >(); 34 35 36 43 public MetaDataContext(QName elementName, ElementContext context) 44 { 45 super(elementName, context.getDictionaryService(), context.getImporter()); 46 } 47 48 49 55 public void setProperty(QName property, String value) 56 { 57 properties.put(property, value); 58 } 59 60 61 67 public String getProperty(QName property) 68 { 69 return properties.get(property); 70 } 71 72 73 78 public Map <QName, String > getProperties() 79 { 80 return properties; 81 } 82 83 } 84 | Popular Tags |