1 4 5 9 10 package org.openlaszlo.compiler; 11 12 import org.openlaszlo.xml.internal.Schema.Type; 13 import org.jdom.Element; 14 15 17 class AttributeSpec { 18 19 Element source = null; 20 21 String name; 22 23 String defaultValue; 24 25 String setter; 26 27 Type type; 28 29 boolean required = false; 30 31 int contentType = NO_CONTENT; 32 33 34 static final int NO_CONTENT = 0; 35 static final int TEXT_CONTENT = 1; 36 static final int HTML_CONTENT = 2; 37 38 AttributeSpec (String name, Type type, String defaultValue, String setter, Element source) { 39 this.source = source; 40 this.name = name; 41 this.type = type; 42 this.defaultValue = defaultValue; 43 this.setter = setter; 44 } 45 46 AttributeSpec (String name, Type type, String defaultValue, String setter, boolean required, Element source) { 47 this.source = source; 48 this.name = name; 49 this.type = type; 50 this.defaultValue = defaultValue; 51 this.setter = setter; 52 this.required = required; 53 } 54 55 AttributeSpec (String name, Type type, String defaultValue, String setter) { 56 this.name = name; 57 this.type = type; 58 this.defaultValue = defaultValue; 59 this.setter = setter; 60 } 61 62 AttributeSpec (String name, Type type, String defaultValue, String setter, boolean required) { 63 this.name = name; 64 this.type = type; 65 this.defaultValue = defaultValue; 66 this.setter = setter; 67 this.required = required; 68 } 69 } 70 | Popular Tags |