1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import java.math.BigDecimal ; 22 import java.util.List ; 23 24 import javax.xml.namespace.QName ; 25 26 import org.netbeans.modules.xml.xam.dom.Attribute; 27 import org.netbeans.modules.xslt.model.ApplyTemplates; 28 import org.netbeans.modules.xslt.model.AsSpec; 29 import org.netbeans.modules.xslt.model.AttrValueTamplateHolder; 30 import org.netbeans.modules.xslt.model.AttributeSet; 31 import org.netbeans.modules.xslt.model.AttributeValueTemplate; 32 import org.netbeans.modules.xslt.model.CallTemplate; 33 import org.netbeans.modules.xslt.model.CharacterMap; 34 import org.netbeans.modules.xslt.model.CollationSpec; 35 import org.netbeans.modules.xslt.model.CopyNamespacesSpec; 36 import org.netbeans.modules.xslt.model.DisableOutputExcapingSpec; 37 import org.netbeans.modules.xslt.model.FormatSpec; 38 import org.netbeans.modules.xslt.model.XslModelReference; 39 import org.netbeans.modules.xslt.model.InheritNamespacesSpec; 40 import org.netbeans.modules.xslt.model.Key; 41 import org.netbeans.modules.xslt.model.LangSpec; 42 import org.netbeans.modules.xslt.model.NamespaceSpec; 43 import org.netbeans.modules.xslt.model.Output; 44 import org.netbeans.modules.xslt.model.Param; 45 import org.netbeans.modules.xslt.model.QualifiedNameable; 46 import org.netbeans.modules.xslt.model.SelectSpec; 47 import org.netbeans.modules.xslt.model.Sort; 48 import org.netbeans.modules.xslt.model.Stylesheet; 49 import org.netbeans.modules.xslt.model.Template; 50 import org.netbeans.modules.xslt.model.TestSpec; 51 import org.netbeans.modules.xslt.model.TypeSpec; 52 import org.netbeans.modules.xslt.model.UseAttributesSetsSpec; 53 import org.netbeans.modules.xslt.model.UseCharacterMapsSpec; 54 import org.netbeans.modules.xslt.model.ValidationSpec; 55 import org.netbeans.modules.xslt.model.enums.Annotaions; 56 import org.netbeans.modules.xslt.model.enums.DefaultValidation; 57 import org.netbeans.modules.xslt.model.enums.Standalone; 58 import org.netbeans.modules.xslt.model.enums.TBoolean; 59 import org.netbeans.modules.xslt.model.enums.Validation; 60 61 62 66 enum XslAttributes implements Attribute { 67 HREF( XslModelReference.HREF , String .class ), 68 VALIDATION( ValidationSpec.VALIDATION , Validation.class ), 69 COPY_NAMESPACES( CopyNamespacesSpec.COPY_NAMESPACES , TBoolean.class ), 70 TEST ( TestSpec.TEST , String .class), 71 REQUIRED( Param.REQUIRED , TBoolean.class ), 72 TUNNEL( Param.TUNNEL , TBoolean.class ), 73 ID( Stylesheet.ID , String .class ), 74 MATCH( Template.MATCH , String .class ), 75 MODE ( ApplyTemplates.MODE , String .class ), 76 MODES( Template.MODE, List .class , QName .class ), DISABLE_OUTPUT_ESCAPING( DisableOutputExcapingSpec.DISABLE_OUTPUT_ESCAPING , 78 TBoolean.class ), 79 AVT_NAME( AttrValueTamplateHolder.NAME , AttributeValueTemplate.class ), 80 NAMESPACE( NamespaceSpec.NAMESPACE , AttributeValueTemplate.class ), 81 SELECT( SelectSpec.SELECT , String .class ), 82 PRIORITY( Template.PRIORITY , Double .class ), 83 NAME( QualifiedNameable.NAME , QName .class ), 84 USE_ATTRIBUTE_SETS( UseAttributesSetsSpec.USE_ATTRIBUTE_SETS , List .class , 85 AttributeSet.class ), 86 SEPARATOR( org.netbeans.modules.xslt.model.Attribute.SEPARATOR, 87 AttributeValueTemplate.class ), 88 NAME_OF_CALL_TMPL( CallTemplate.NAME , Template.class ), 89 COLLATION( CollationSpec.COLLATION , String .class ), 90 INHERIT_NAMESPACES( InheritNamespacesSpec.INHERIT_NAMESPACES, TBoolean.class ), 91 ENCODING( Output.ENCODING, String .class ), 92 LANG( LangSpec.LANG , AttributeValueTemplate.class ), 93 FORMAT( FormatSpec.FORMAT, AttributeValueTemplate.class ), 94 INDENT( Output.INDENT , TBoolean.class ), 95 STANDALONE( Output.STANDALONE , Standalone.class ), 96 TYPE( TypeSpec.TYPE , QName .class ), 97 UNDECLARE_PREFIXES( Output.UNDECLARE_PREFIXES, TBoolean.class ), 98 USE_CHARACTER_MAPS( UseCharacterMapsSpec.USE_CHARACTER_MAPS , List .class , 99 CharacterMap.class ), 100 CASE_ORDER( Sort.CASE_ORDER , AttributeValueTemplate.class ), 101 DATA_TYPE( Sort.DATA_TYPE , AttributeValueTemplate.class ), 102 ORDER( Sort.ORDER, AttributeValueTemplate.class ), 103 STABLE( Sort.STABLE , TBoolean.class ), 104 USE( Key.USE , String .class ), 105 AS( AsSpec.AS, String .class ), 106 XPATH_DEFAULT_NAMESPACE( Stylesheet.XPATH_DEFAULT_NAMESPACE , String .class ), 107 VERSION( Stylesheet.VERSION , BigDecimal .class ), 108 INPUT_TYPE_ANNOTAIONS( Stylesheet.INPUT_TYPE_ANNOTAIONS, Annotaions.class ), 109 DEFAULT_VALIDATION( Stylesheet.DEFAULT_VALIDATION, DefaultValidation.class ), 110 EXTENSION_ELEMENT_PREFIXES( Stylesheet.EXTENSION_ELEMENT_PREFIXES, List .class, 111 String .class ), 112 DEFAULT_COLLATION( Stylesheet.DEFAULT_COLLATION, List .class, 113 String .class ), 114 EXCLUDE_RESULT_PREFIXES( Stylesheet.EXCLUDE_RESULT_PREFIXES, List .class, 115 String .class ), 116 ; 117 118 XslAttributes(String name, Class type, Class memberType) { 119 this.myName = name; 120 this.myType = type; 121 this.myMemberType = memberType; 122 } 123 124 XslAttributes( String name , Class type ) { 125 this( name , type , null ); 126 } 127 128 public String getName() { 129 return myName; 130 } 131 132 public Class getType() { 133 return myType; 134 } 135 136 public Class getMemberType() { 137 return myMemberType; 138 } 139 140 private final String myName; 141 private final Class myType; 142 private final Class myMemberType; 143 144 } 145 | Popular Tags |