1 19 20 package com.sslexplorer.properties.attributes; 21 22 import java.io.IOException ; 23 24 import org.jdom.Element; 25 import org.jdom.JDOMException; 26 27 import com.sslexplorer.boot.AbstractXMLDefinedPropertyClass; 28 import com.sslexplorer.boot.PropertyDefinition; 29 30 public abstract class AbstractXMLDefinedAttributesPropertyClass extends AbstractXMLDefinedPropertyClass implements AttributesPropertyClass { 31 32 private String messageResourcesKey; 33 private boolean supportsVisibility; 34 35 public AbstractXMLDefinedAttributesPropertyClass(String name, boolean supportsReplacementsVariablesInValues, String messageResourcesKey, boolean supportsVisibility) throws IOException , JDOMException { 36 super(name, supportsReplacementsVariablesInValues); 37 this.messageResourcesKey = messageResourcesKey; 38 this.supportsVisibility = supportsVisibility; 39 } 40 41 protected PropertyDefinition createDefinition(Element element) throws JDOMException { 42 return new XMLAttributeDefinition(element); 43 } 44 45 public String getMessageResourcesKey() { 46 return messageResourcesKey; 47 } 48 49 public boolean isSupportsVisibility() { 50 return supportsVisibility; 51 } 52 53 } 54 | Popular Tags |