org.apache.cayenne.modeler.CodeTemplateManager.class Maven / Gradle / Ivy
???? 4]
[ ? ? ?
? ?
[ ? ?
? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?
? ?
# ? ? ? ? ? ? ? ? ? ? ? ? + ? ? + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?
#
?
G
G ?
[ ?
! STANDARD_SERVER_SUPERCLASS Ljava/lang/String;
ConstantValue STANDARD_SERVER_SUBCLASS SINGLE_SERVER_CLASS STANDARD_CLIENT_SUPERCLASS STANDARD_CLIENT_SUBCLASS STANDARD_EMBEDDABLE_SUPERCLASS STANDARD_EMBEDDABLE_SUBCLASS SINGLE_EMBEDDABLE_CLASS "STANDARD_SERVER_DATAMAP_SUPERCLASS STANDARD_SERVER_DATAMAP_SUBCLASS "STANDARD_CLIENT_DATAMAP_SUPERCLASS STANDARD_CLIENT_DATAMAP_SUBCLASS SINGLE_DATAMAP_CLASS NODE_NAME standardSubclassTemplates Ljava/util/List; Signature $Ljava/util/List; standardSuperclassTemplates standardClientSubclassTemplates !standardClientSuperclassTemplates customTemplates Ljava/util/Map; 5Ljava/util/Map; reverseCustomTemplate standardTemplates standardEmbeddableTemplates %standardEmbeddableSuperclassTemplates standardServerDataMapTemplates (standardServerDataMapSuperclassTemplates standardClientDataMapTemplates (standardClientDataMapSuperclassTemplates reverseStandartTemplates logger Lorg/slf4j/Logger; getTemplatePreferences G(Lorg/apache/cayenne/modeler/Application;)Ljava/util/prefs/Preferences; Code LineNumberTable LocalVariableTable this 0Lorg/apache/cayenne/modeler/CodeTemplateManager; application (Lorg/apache/cayenne/modeler/Application; +(Lorg/apache/cayenne/modeler/Application;)V entry Entry InnerClasses Ljava/util/Map$Entry; LocalVariableTypeTable ;Ljava/util/Map$Entry;
StackMapTable"# updateCustomTemplates (Ljava/util/prefs/Preferences;)V e 'Ljava/util/prefs/BackingStoreException; path (Lorg/apache/cayenne/modeler/pref/FSPath; key
preference Ljava/util/prefs/Preferences; keys [Ljava/lang/String;$ ? getTemplatePath L(Ljava/lang/String;Lorg/apache/cayenne/resource/Resource;)Ljava/lang/String; Ljava/nio/file/Path; Ljava/net/URISyntaxException; name rootPath &Lorg/apache/cayenne/resource/Resource; value Ljava/lang/Object;
getNameByPath :(Ljava/lang/String;Ljava/nio/file/Path;)Ljava/lang/String; fullPath getCustomTemplates ()Ljava/util/Map; 7()Ljava/util/Map; getStandardSubclassTemplates ()Ljava/util/List; &()Ljava/util/List; "getStandardClientSubclassTemplates getStandardSuperclassTemplates $getStandardClientSuperclassTemplates getStandartEmbeddableTemplates (getStandartEmbeddableSuperclassTemplates getStandartDataMapTemplates %getStandartDataMapSuperclassTemplates !getStandardClientDataMapTemplates +getStandardClientDataMapSuperclassTemplates ()V
SourceFile CodeTemplateManager.java%& .org/apache/cayenne/modeler/CodeTemplateManager codeTemplateManager'( ? ? java/util/ArrayList ?) p m Standard Server Superclass*+, r m Standard Client Superclass l m Single Server Class Standard Server Subclass q m Standard Client Subclass x m Standard Embeddable Subclass Single Embeddable Class y m Standard Embeddable Superclass z m Standard Server DataMap Subclass Single DataMap Class { m "Standard Server DataMap Superclass | m Standard Client DataMap Subclass } m "Standard Client DataMap Superclass ? ? ? ? java/util/HashMap v t s t-./0123456 java/util/Map$Entry76 java/lang/String869: w t ,org/apache/cayenne/gen/ClassGenerationAction templates/v4_1/superclass.vm 2org/apache/cayenne/gen/ClientClassGenerationAction #templates/v4_1/client-superclass.vm templates/v4_1/subclass.vm !templates/v4_1/client-subclass.vm templates/v4_1/singleclass.vm 'templates/v4_1/embeddable-superclass.vm %templates/v4_1/embeddable-subclass.vm (templates/v4_1/embeddable-singleclass.vm "templates/v4_1/datamap-subclass.vm )templates/v4_1/client-datamap-subclass.vm %templates/v4_1/datamap-singleclass.vm $templates/v4_1/datamap-superclass.vm +templates/v4_1/client-datamap-superclass.vm ~ t;< %java/util/prefs/BackingStoreException ? Error reading preferences=>? ?@ &org/apache/cayenne/modeler/pref/FSPathAB ? ?CDEFGHIJKLMENOPQERSTUD java/net/URISyntaxException 2Path for template named '{}' could not be resolved>VWTXQY,Z[\ java/lang/Object &org/apache/cayenne/modeler/Application java/util/Iterator java/util/prefs/Preferences getClass ()Ljava/lang/Class; getPreferencesNode B(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/prefs/Preferences; (I)V java/util/List add (Ljava/lang/Object;)Z
java/util/Map entrySet ()Ljava/util/Set;
java/util/Set iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; getValue getKey put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
childrenNames ()[Ljava/lang/String; org/slf4j/Logger warn (Ljava/lang/String;)V (IF)V node 1(Ljava/lang/String;)Ljava/util/prefs/Preferences; getPath ()Ljava/lang/String; get &(Ljava/lang/Object;)Ljava/lang/Object; $org/apache/cayenne/resource/Resource getURL ()Ljava/net/URL; java/net/URL toURI ()Ljava/net/URI; java/nio/file/Paths $(Ljava/net/URI;)Ljava/nio/file/Path; java/nio/file/Path getParent ()Ljava/nio/file/Path; ;(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
relativize *(Ljava/nio/file/Path;)Ljava/nio/file/Path; toString '(Ljava/lang/String;Ljava/lang/Object;)V resolve normalize containsKey org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! [ \ ] ^ _ ] ^ ` ] ^ a ] ^
b ] ^ c ] ^ d ] ^ e ] ^ f ] ^ g ] ^ h ] ^ i ] ^ j ] ^ k ] ^ l m n o p m n o q m n o r m n o s t n u v t n u w t n u x m n o y m n o z m n o { m n o | m n o } m n o ~ t n u
? ? ? ? ? +*? ? ? ? S ? ? ? ? ? ? ? ? 7 ?*? *? Y? ? *? ?
W*? Y? ? *?
?
W*? Y? ? *? ?
W*? ?
W*? Y? ? *? ?
W*? Y? ? *? ?
W*? ?
W*? Y? ? *? ?
W*? Y? ? *? ?
W*? ?
W*? Y? ? *? ?
W*? Y? ? *? ?
W*? Y? ? *? ?
W**+? !? "*? #Y? $? %*? &? ' ? ( M,? ) ? ,,? * ? +N*? %-? , ? --? . ? -? / W???*? #Y? $? 0*? 0 2? / W*? 0
4? / W*? 05? / W*? 06? / W*? 07? / W*? 08? / W*? 09? / W*? 0:? / W*? 0;? / W*? 0