Lines 60-65
Link Here
|
60 |
private static AntHandler targetHandler = new TargetHandler(); |
60 |
private static AntHandler targetHandler = new TargetHandler(); |
61 |
private static AntHandler mainHandler = new MainHandler(); |
61 |
private static AntHandler mainHandler = new MainHandler(); |
62 |
private static AntHandler projectHandler = new ProjectHandler(); |
62 |
private static AntHandler projectHandler = new ProjectHandler(); |
|
|
63 |
private static AntHandler annotationHandler = new AnnotationHandler(); |
63 |
|
64 |
|
64 |
/** |
65 |
/** |
65 |
* helper for path -> URI and URI -> path conversions. |
66 |
* helper for path -> URI and URI -> path conversions. |
Lines 715-720
Link Here
|
715 |
if (name.equals("target") |
716 |
if (name.equals("target") |
716 |
&& (uri.equals("") || uri.equals(ANT_CORE_URI))) { |
717 |
&& (uri.equals("") || uri.equals(ANT_CORE_URI))) { |
717 |
return ProjectHelper2.targetHandler; |
718 |
return ProjectHelper2.targetHandler; |
|
|
719 |
} if (name.equals("annotation") |
720 |
&& (uri.equals("") || uri.equals(ANT_CORE_URI))) { |
721 |
return ProjectHelper2.annotationHandler; |
718 |
} else { |
722 |
} else { |
719 |
return ProjectHelper2.elementHandler; |
723 |
return ProjectHelper2.elementHandler; |
720 |
} |
724 |
} |
Lines 853-859
Link Here
|
853 |
Attributes attrs, |
857 |
Attributes attrs, |
854 |
AntXMLContext context) |
858 |
AntXMLContext context) |
855 |
throws SAXParseException { |
859 |
throws SAXParseException { |
856 |
return ProjectHelper2.elementHandler; |
860 |
if (name.equals("annotation") |
|
|
861 |
&& (uri.equals("") || uri.equals(ANT_CORE_URI))) { |
862 |
return ProjectHelper2.annotationHandler; |
863 |
} else { |
864 |
return ProjectHelper2.elementHandler; |
865 |
} |
857 |
} |
866 |
} |
858 |
|
867 |
|
859 |
/** |
868 |
/** |
Lines 1018-1024
Link Here
|
1018 |
Attributes attrs, |
1027 |
Attributes attrs, |
1019 |
AntXMLContext context) |
1028 |
AntXMLContext context) |
1020 |
throws SAXParseException { |
1029 |
throws SAXParseException { |
1021 |
return ProjectHelper2.elementHandler; |
1030 |
if (tag.equals("annotation") |
|
|
1031 |
&& (uri.equals("") || uri.equals(ANT_CORE_URI))) { |
1032 |
return ProjectHelper2.annotationHandler; |
1033 |
} else { |
1034 |
return ProjectHelper2.elementHandler; |
1035 |
} |
1022 |
} |
1036 |
} |
1023 |
|
1037 |
|
1024 |
/** |
1038 |
/** |
Lines 1031-1036
Link Here
|
1031 |
*/ |
1045 |
*/ |
1032 |
public void onEndElement(String uri, String tag, AntXMLContext context) { |
1046 |
public void onEndElement(String uri, String tag, AntXMLContext context) { |
1033 |
context.popWrapper(); |
1047 |
context.popWrapper(); |
|
|
1048 |
} |
1049 |
} |
1050 |
|
1051 |
/** |
1052 |
* This Handler is a nop handler. |
1053 |
*/ |
1054 |
public static class AnnotationHandler extends AntHandler { |
1055 |
public AntHandler onStartChild(String uri, String tag, String qname, |
1056 |
Attributes attrs, |
1057 |
AntXMLContext context) |
1058 |
throws SAXParseException { |
1059 |
return new AnnotationHandler(); |
1060 |
} |
1061 |
|
1062 |
public void characters(char[] buf, int start, int count, AntXMLContext context) |
1063 |
throws SAXParseException { |
1034 |
} |
1064 |
} |
1035 |
} |
1065 |
} |
1036 |
} |
1066 |
} |