ex metadata tag

本文介紹了Flex2.0中的各種元數據標籤,包括給AS編譯器和MXML編譯器使用的標籤,以及用戶自定義的元數據標籤。文中詳細列舉了多種已知和未知功能的元數據標籤,如[Bindable]、[Event]、[Inspectable]等,並提供了部分標籤的應用示例。

Flex 2.0 裡面有許多的 Metadata
有些是給 AS 編譯器看的
有些是給 MXML 編譯器看的
使用者也可以自行定義 Metadata

官方文件內只有說明一部分的 Metadata Tag
還有很多不知道其功能為何

以下是粗略的整理,包含 Metadata Tag 名稱與幾個簡單的例子

文件上有記載的

http://livedocs.macromedia.com/flex/2/docs/00001651.html

	[ArrayElementType]
[ArrayElementType("mx.states.Transition")]
[ArrayElementType("mx.states.State")]

[Bindable]
[Bindable("errorStringChanged")]
[Bindable("toolTipChanged")]
[Bindable("currentStateChange")]
[Bindable("verticalScrollPolicyChanged")]

[DefaultProperty]
[DefaultProperty("dataProvider")]
[DefaultProperty("children")]

[Effect]
[Effect(name="hideDataEffect", event="hideData")]
[Effect(name="moveEffect", event="move")]

[Embed]
[Embed(source="Beep.mp3")]

[Event]
[Event(name="itemClick", type="mx.charts.events.LegendMouseEvent")]
[Event(name="hide", type="mx.events.FlexEvent")]

[IconFile]
[IconFile("Repeater.png")]
[IconFile("AreaChart.png")]

[Inspectable]
[Inspectable(defaultValue="true")]
[Inspectable(environment="none")]
[Inspectable(category="Data")]
[Inspectable(category="General", enumeration="overlaid,stacked,100%", defaultValue="overlaid")]


[InstanceType]
[InstanceType("mx.controls.Label")]
public var topRow:IDeferredInstance;

[NonCommittingChangeEvent]
[NonCommittingChangeEvent("change")]

[Style]
[Style(name="axisStroke", type="mx.graphics.IStroke", inherit="no")]
[Style(name="fontWeight", type="String", enumeration="normal,bold", inherit="yes")]
[Style(name="barWidthRatio", type="Number", inherit="no")]


文件上沒記載的

	[SWF]
[SWF(width="300", height="200", frameRate="18", backgroundColor="#FFFFFF")]

[RemoteClass]
[RemoteClass(alias="flex.messaging.io.ArrayCollection")]
[RemoteClass(alias="flex.messaging.io.ArrayList")]

[Frame]
[Frame(factoryClass="mx.managers.SystemManager")]
[Frame(factoryClass="mx.core.FlexApplicationBootstrap")]



[Frame(extraClass="Obj")]


[ExcludeClass]
[DefaultBindingProperty]
[DefaultBindingProperty(destination="dataProvider")]
[DefaultTriggerEvent]
[DefaultTriggerEvent("itemClick")]
[DefaultTriggerEvent("scroll")]
[Exclude]
[Exclude(name="defaultButton", kind="property")]
[Exclude(name="horizontalScrollPolicy", kind="property")]
[Exclude(name="icon", kind="property")]
[Exclude(name="label", kind="property")]
[Exclude(name="tileHeight", kind="property")]
[ResourceBundle]
[ResourceBundle("validators")]
[ResourceBundle("SharedResources")]
[ResourceBundle("foo")]
[PercentProxy]
[PercentProxy("percentHeight")]
[RequiresDataBinding]
[RequiresDataBinding(true)]
[CollapseWhiteSpace]
[MaxChildren]
[MaxChildren(0)]
[AccessibilityClass]
[AccessibilityClass(implementation="mx.accessibility.PanelAccImpl")]
[AccessibilityClass(implementation="mx.accessibility.TitleWindowAccImpl")]
[Transient]


Line 2716: 07-31 12:03:20.582844 2148 3172 I OTAApplication: DownloadTask: server md5:8274b50203b87ef26fdbd1080dadcfa5 and realMd5:8274b50203b87ef26fdbd1080dadcfa5 Line 2717: 07-31 12:03:20.583547 2148 3172 D OTAApplication: DownloadManager: success to remove caches Line 2724: 07-31 12:03:20.608396 2148 3172 D OTAApplication: DownloadResponse: delete downloadInfo by status is complete Line 2725: 07-31 12:03:20.610655 2148 2148 D OTAApplication: OtaDownloadTask: onDownloadSuccess:my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a Line 2728: 07-31 12:03:20.611495 2148 2148 D OTAApplication: OTAService: download finished! path=/data/ota_package/OTA/.otaPackage/my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a_all.zip Line 2730: 07-31 12:03:20.618558 2148 2148 I OTAApplication: OTAService: downloading..., index/total=2/2, name=/my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a_all.zip, speed=4K/s, current/size=5874499390/5874499390, percent=100% Line 2731: 07-31 12:03:20.620494 2148 2148 D OTAApplication: CommonUtil: isMaintenanceSpace: false Line 2733: 07-31 12:03:20.621122 2148 2148 D OTAApplication: NotificationHelper: NotificationHelper notifyProgress Line 2734: 07-31 12:03:20.633027 2148 2148 D OTAApplication: CommonUtil: get language tag: en-GB Line 2742: 07-31 12:03:20.642627 2148 2148 D OTAApplication: OTAService: autoDownload = false Line 2747: 07-31 12:03:20.645907 2148 2148 D OTAApplication: DbHelper: getAllUpdatePackageListInfo Line 2755: 07-31 12:03:20.656866 2059 2059 D OTAApplication_UI: EntryActivity: isLocalUpdate:false Line 2759: 07-31 12:03:20.665463 2148 2148 I OTAApplication: OtaDownloadManager: download result = [SUCCESS] Line 2783: 07-31 12:03:20.730276 2148 2148 I OTAApplication: OTAService: ota download success and md5 verify success Line 2786: 07-31 12:03:20.733584 2148 2148 D OTAApplication: DbHelper: getUpdatePackageListInfo Line 2789: 07-31 12:03:20.739755 2148 2148 D OTAApplication: DbHelper: getAllUpdatePackageListInfo Line 2796: 07-31 12:03:20.750017 2148 2148 D OTAApplication: NotificationHelper: cancel the Notification Line 2797: 07-31 12:03:20.750507 2148 2148 I OTAApplication: OTAService: ota download success Line 2803: 07-31 12:03:20.754670 2148 2148 D OTAApplication: OTAService: the executor is not shut down. do it! Line 2804: 07-31 12:03:20.755831 2059 2059 D OTAApplication_UI: EntryActivity: isLocalUpdate:false Line 2805: 07-31 12:03:20.756431 2148 2148 D OTAApplication: DownloadResponse: status: 25 onDownloadSuccess: my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a Line 2806: 07-31 12:03:20.759597 2148 2288 I OTAApplication: VerifyDownloadedPackageRunnable: info.path.size() = 1 Line 2807: 07-31 12:03:20.759748 2148 2288 I OTAApplication: VerifyDownloadedPackageRunnable: filePath = /data/ota_package/OTA/.otaPackage/my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a_all.zip Line 2808: 07-31 12:03:20.760892 2148 2288 D OTAApplication: CommonUtil: change permission success :/data/ota_package/OTA Line 2809: 07-31 12:03:20.761288 2148 2288 D OTAApplication: CommonUtil: change permission success :/data/ota_package/OTA/.otaPackage Line 2810: 07-31 12:03:20.761692 2148 2288 D OTAApplication: CommonUtil: change permission success :/data/ota_package/OTA/.otaPackage/my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a_all.zip Line 2811: 07-31 12:03:20.761798 2148 2288 E OTAApplication: VerifyDownloadedPackageRunnable: chmodResult = true Line 2812: 07-31 12:03:20.761841 2148 2288 D OTAApplication: VerifyDownloadedPackageRunnable: Ota state is status_verify_ota_package, cannot pause Line 2814: 07-31 12:03:20.765730 2148 2288 D OTAApplication: CommonUtil: verity state=enforcing device state=locked Line 2815: 07-31 12:03:20.765970 2148 2288 D OTAApplication: CommonUtil: verifyZipPackageCert! Line 5327: 07-31 12:03:21.944978 2059 2059 D OTAApplication_UI: BaseActivity: setDefaultOrientation Line 5340: 07-31 12:03:21.946670 2059 2059 D OTAApplication_UI: BaseActivity: SCREEN_ORIENTATION_PORTRAIT Line 5341: 07-31 12:03:21.946834 2059 2059 D OTAApplication_UI: FragmentBusy: onStart Line 5352: 07-31 12:03:21.949983 2059 2059 D OTAApplication_UI: EntryActivity: onResume Line 5353: 07-31 12:03:21.950071 2059 2059 D OTAApplication_UI: EntryActivity: getExtraStringFromIntent local_file_uri = null Line 5363: 07-31 12:03:21.954423 2059 2059 D OTAApplication_UI: DcsUtil: report enter main page: {test_mode=0, enter_from=1, ota_status=2} Line 5377: 07-31 12:03:21.955382 2059 2059 D OTAApplication_UI: FragmentBusy: onResume Line 5417: 07-31 12:03:21.963884 2059 2059 I OTAApplication_UI: CommonUtil: mTypefaceNamenull Line 5419: 07-31 12:03:21.964381 2059 2059 D OTAApplication_UI: CommonUtil: get language tag: en-GB Line 6003: 07-31 12:03:22.128714 2059 2059 D OTAApplication_UI: CommonUtil: get language tag: en-GB Line 6547: 07-31 12:03:22.247226 2059 2059 D OTAApplication_UI: WebViewWrapper: onJsPrompt() message = 前端log:按钮状态:{"positiveButton":"Downloading... 100.0%","negativeButton":"","progress":"100.0","noticeContent":"","positiveButtonState":"1"} Line 6548: 07-31 12:03:22.247583 2059 2059 D OTAApplication_UI: JSCallJava: call json: 前端log:按钮状态:{"positiveButton":"Downloading... 100.0%","negativeButton":"","progress":"100.0","noticeContent":"","positiveButtonState":"1"}, result = not found method() with valid parameters Line 6583: 07-31 12:03:22.281072 2059 2059 D OTAApplication_UI: FragmentBusy: onReceiveValue ,call setScreen! value = null Line 19622: 07-31 12:03:46.272111 2148 2288 W OTAApplication: CommonUtil: verifyPackage true Line 19623: 07-31 12:03:46.272546 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent enter Line 19624: 07-31 12:03:46.273176 2148 2288 D OTAApplication: AndroidVersionDepDecoupling: zipPathValidator support clearCallback Line 19625: 07-31 12:03:46.276558 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = android_version=15 Line 19626: 07-31 12:03:46.276699 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = build_type=user Line 19627: 07-31 12:03:46.276748 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = display_os_version=15.0 Line 19628: 07-31 12:03:46.276793 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = forbid_ota_local_update=false Line 19629: 07-31 12:03:46.276854 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = google_patch=20250701 Line 19630: 07-31 12:03:46.276918 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = oplus_disable_postinstall=no Line 19631: 07-31 12:03:46.276970 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = oplus_hex_nv_id=1B Line 19632: 07-31 12:03:46.277019 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = oplus_project_numbers=23700 Line 19633: 07-31 12:03:46.277069 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = os_version=V15.0.0 Line 19634: 07-31 12:03:46.277127 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = ota-id=RMX3999_11.C.49_1490_202506172340 Line 19635: 07-31 12:03:46.277178 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = ota-property-files=payload_metadata.bin:3003:211852,payload.bin:3003:5874492701,payload_properties.txt:5874495762:433,care_map.pb:2286:650,metadata:69:1143,metadata.pb:1280:959 Line 19636: 07-31 12:03:46.277248 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = ota-required-cache=0 Line 19637: 07-31 12:03:46.277299 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = ota-streaming-property-files=payload.bin:3003:5874492701,payload_properties.txt:5874495762:433,care_map.pb:2286:650,metadata:69:1143,metadata.pb:1280:959 Line 19638: 07-31 12:03:46.277343 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = ota-type=AB Line 19639: 07-31 12:03:46.277389 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = ota_version=RMX3999_11.C.49_1490_202506172340 Line 19640: 07-31 12:03:46.277434 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = patch_type=1 Line 19641: 07-31 12:03:46.277487 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = post-build=realme/RMX3999IN/RE5C94L1:15/AP3A.240617.008/U.R4T2.1e4cd4b_1-95578:user/release-keys Line 19642: 07-31 12:03:46.277530 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = post-build-incremental=U.R4T2.1e4cd4b_1-95578 Line 19643: 07-31 12:03:46.277578 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = post-sdk-level=35 Line 19644: 07-31 12:03:46.277643 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = post-security-patch-level=2025-07-01 Line 19645: 07-31 12:03:46.277688 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = post-timestamp=1750166785 Line 19646: 07-31 12:03:46.277748 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = pre-device=RE5C94L1 Line 19647: 07-31 12:03:46.277835 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = product_name=RMX3999IN Line 19648: 07-31 12:03:46.277873 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = reserve-image-size=0 Line 19649: 07-31 12:03:46.277933 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = security_patch=2025-07-01 Line 19650: 07-31 12:03:46.278033 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = security_patch_vendor=2025-07-01 Line 19651: 07-31 12:03:46.278098 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = version_name=RMX3999_15.0.0.1100(EX01) Line 19652: 07-31 12:03:46.278135 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = version_name_show=RMX3999_15.0.0.1100(EX01) Line 19653: 07-31 12:03:46.278194 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent line = wipe=0 Line 19654: 07-31 12:03:46.278272 2148 2288 D OTAApplication: ABUpdateUtils: getZipFileContent end Line 19655: 07-31 12:03:46.278540 2148 2288 E OTAApplication: VerifyOTAPackageUtil: BuildType not match deviceBuildType = userdebug ,pkgBuildType = user Line 19656: 07-31 12:03:46.283515 2148 2288 D OTAApplication: DbHelper: getAllUpdatePackageListInfo Line 19657: 07-31 12:03:46.329001 2148 2288 D OTAApplication: DcsUtil: report verify metadata failed: {failed_reason=-37, package_type=1, payload_premise_failed_reason=0, test_mode=0, new_version_name=1A27B77904419E55677FAF58F8E7DC283FE69DF3D7CD1B592FD019C350AF3AC3, update_tech=vab, update_type=ota, path=/data/ota_package/OTA/.otaPackage/my_manifest_RMX3999_11.C.49_1490_202506172340.1B.2374e68a_all.zip, cur_version_name=31D0303B47030225AA747CDEF0763EAE80747370E7A5A39CD67CF6E87FBCAABE, verify_trigger=30} Line 19659: 07-31 12:03:46.329853 2148 2288 D OTAApplication: VerifyDownloadedPackageRunnable: setResult ,result = -37 Line 19660: 07-31 12:03:46.343577 2148 2148 I OTAApplication: OTAService: otaState Changed Line 19661: 07-31 12:03:46.344259 2148 2148 D OTAApplication: CommonUtil: call OtaCard Update, otaCardStates :2 Line 19662: 07-31 12:03:46.344700 2148 2148 D OTAApplication: CommonUtil: Ota is not in recruit , can't call OtaCard Update Line 19663: 07-31 12:03:46.345280 2148 2256 D OTAApplication: CommonUtil: isMaintenanceSpace: false Line 19664: 07-31 12:03:46.345688 2148 2256 D OTAApplication: NotificationHelper: NotificationHelper notifyDownloadFail Line 19667: 07-31 12:03:46.407466 2148 2256 D OTAApplication: OTAService: the executor is not shut down. do it!
08-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值