String format specifier

%[argument_index$][flags][width][.precision]conversion 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
nao机器人学习过程中java代码 package com.aldebaran.proxy; import com.aldebaran.proxy.Variant; import com.aldebaran.proxy.ALProxy; public class ALTextToSpeechProxy extends ALProxy { static { System.loadLibrary("jnaoqi"); } public ALProxy proxy; /// /// Default Constructor. /// public ALTextToSpeechProxy(String ip, int port) { super("ALTextToSpeech", ip, port); } /// /// Disables the notifications puted in ALMemory during the synthesis (TextStarted, TextDone, CurrentBookMark, CurrentWord, ...) /// public void disableNotifications() { Variant result = call("disableNotifications" ); // no return value } /// /// Enables the notifications puted in ALMemory during the synthesis (TextStarted, TextDone, CurrentBookMark, CurrentWord, ...) /// public void enableNotifications() { Variant result = call("enableNotifications" ); // no return value } /// /// Exits and unregisters the module. /// public void exit() { Variant result = call("exit" ); // no return value } /// /// Outputs the languages installed on the system. /// /// Array of std::string that contains the languages installed on the system. public String[] getAvailableLanguages() { Variant result = call("getAvailableLanguages" ); return (String[]) result.toStringArray(); } /// /// Outputs the available voices. The returned list contains the voice IDs. /// /// Array of std::string containing the voices installed on the system. public String[] getAvailableVoices() { Variant result = call("getAvailableVoices" ); return (String[]) result.toStringArray(); } /// /// Gets the name of the parent broker. /// /// The name of the parent broker. public String getBrokerName() { Variant result = call("getBrokerName" ); return result.toString(); } /// /// Returns the language currently used by the text-to-speech engine. /// /// Language of the current voice. public String getLanguage() { Variant result = call("getLanguage" ); return result.toString(); } /// /// Returns the encoding that should be used with the specified language. /// /// Language name (as a std::string). Must belong to the languages available in TTS. /// Encoding of the specified language. public String getLanguageEncoding( String pLanguage) { Variant vpLanguage; vpLanguage = new Variant(pLanguage); Variant result = call("getLanguageEncoding" ,vpLanguage); return result.toString(); } /// /// Retrieves a method's description. /// /// The name of the method. /// A structure containing the method's description. public Variant getMethodHelp( String methodName) { Variant vmethodName; vmethodName = new Variant(methodName); Variant result = call("getMethodHelp" ,vmethodName); return result; } /// /// Retrieves the module's method list. /// /// An array of method names. public String[] getMethodList() { Variant result = call("getMethodList" ); return (String[]) result.toStringArray(); } /// /// Retrieves the module's description. /// /// A structure describing the module. public Variant getModuleHelp() { Variant result = call("getModuleHelp" ); return result; } /// /// Returns the value of one of the voice parameters. The available parameters are: \"pitchShift\", \"doubleVoice\",\"doubleVoiceLevel\" and \"doubleVoiceTimeShift\" /// /// Name of the parameter. /// Value of the specified parameter public float getParameter( String pParameterName) { Variant vpParameterName; vpParameterName = new Variant(pParameterName); Variant result = call("getParameter" ,vpParameterName); return result.toFloat(); } /// /// Gets the method usage string. This summarises how to use the method. /// /// The name of the method. /// A string that summarises the usage of the method. public String getUsage( String name) { Variant vname; vname = new Variant(name); Variant result = call("getUsage" ,vname); return result.toString(); } /// /// Returns the voice currently used by the text-to-speech engine. /// /// Name of the current voice public String getVoice() { Variant result = call("getVoice" ); return result.toString(); } /// /// Fetches the current volume the text to speech. /// /// Volume (integer between 0 and 100). public float getVolume() { Variant result = call("getVolume" ); return result.toFloat(); } /// /// Returns true if the method is currently running. /// /// The ID of the method that was returned when calling the method using 'post' /// True if the method is currently running public Boolean isRunning( int id) { Variant vid; vid = new Variant(id); Variant result = call("isRunning" ,vid); return result.toBoolean(); } /// /// Loads a set of voice parameters defined in a xml file contained in the preferences folder.The name of the xml file must begin with ALTextToSpeech_Voice_ /// /// Name of the voice preference. public void loadVoicePreference( String pPreferenceName) { Variant vpPreferenceName; vpPreferenceName = new Variant(pPreferenceName); Variant result = call("loadVoicePreference" ,vpPreferenceName); // no return value } /// /// Just a ping. Always returns true /// /// returns true public Boolean ping() { Variant result = call("ping" ); return result.toBoolean(); } /// /// Performs the text-to-speech operations : it takes a std::string as input and outputs a sound in both speakers. It logs an error if the std::string is empty. String encoding must be UTF8. /// /// Text to say, encoded in UTF-8. public void say( String StringToSay) { Variant vstringToSay; vstringToSay = new Variant(StringToSay); Variant result = call("say" ,vstringToSay); // no return value } /// /// Performs the text-to-speech operations: it takes a std::string as input and outputs the corresponding audio signal in the specified file. /// /// Text to say, encoded in UTF-8. /// RAW file where to store the generated signal. The signal is encoded with a sample rate of 22050Hz, format S16_LE, 2 channels. public void sayToFile( String pStringToSay, String pFileName) { Variant vpStringToSay; vpStringToSay = new Variant(pStringToSay); Variant vpFileName; vpFileName = new Variant(pFileName); Variant result = call("sayToFile" ,vpStringToSay, vpFileName); // no return value } /// /// This method performs the text-to-speech operations: it takes a std::string, outputs the synthesis resulting audio signal in a file, and then plays the audio file. The file is deleted afterwards. It is useful when you want to perform a short synthesis, when few CPU is available. Do not use it if you want a low-latency synthesis or to synthesize a long std::string. /// /// Text to say, encoded in UTF-8. public void sayToFileAndPlay( String pStringToSay) { Variant vpStringToSay; vpStringToSay = new Variant(pStringToSay); Variant result = call("sayToFileAndPlay" ,vpStringToSay); // no return value } /// /// Changes the language used by the Text-to-Speech engine. It automatically changes the voice used since each of them is related to a unique language. If you want that change to take effect automatically after reboot of your robot, refer to the robot web page (setting page). /// /// Language name. Must belong to the languages available in TTS (can be obtained with the getAvailableLanguages method). It should be an identifier std::string. public void setLanguage( String pLanguage) { Variant vpLanguage; vpLanguage = new Variant(pLanguage); Variant result = call("setLanguage" ,vpLanguage); // no return value } /// /// Changes the parameters of the voice. The available parameters are: /// /// pitchShift: applies a pitch shifting to the voice. The value indicates the ratio between the new fundamental frequencies and the old ones (examples: 2.0: an octave above, 1.5: a quint above). Correct range is (1.0 -- 4), or 0 to disable effect. /// /// doubleVoice: adds a second voice to the first one. The value indicates the ratio between the second voice fundamental frequency and the first one. Correct range is (1.0 -- 4), or 0 to disable effect /// /// doubleVoiceLevel: the corresponding value is the level of the double voice (1.0: equal to the main voice one). Correct range is (0 -- 4). /// /// doubleVoiceTimeShift: the corresponding value is the delay between the double voice and the main one. Correct range is (0 -- 0.5) /// /// If the effect value is not available, the effect parameter remains unchanged. /// /// Name of the parameter. /// Value of the parameter. public void setParameter( String pEffectName, float pEffectValue) { Variant vpEffectName; vpEffectName = new Variant(pEffectName); Variant vpEffectValue; vpEffectValue = new Variant(pEffectValue); Variant result = call("setParameter" ,vpEffectName, vpEffectValue); // no return value } /// /// Changes the voice used by the text-to-speech engine. The voice identifier must belong to the installed voices, that can be listed using the 'getAvailableVoices' method. If the voice is not available, it remains unchanged. No exception is thrown in this case. For the time being, only two voices are available by default : Kenny22Enhanced (English voice) and Julie22Enhanced (French voice) /// /// The voice (as a std::string). public void setVoice( String pVoiceID) { Variant vpVoiceID; vpVoiceID = new Variant(pVoiceID); Variant result = call("setVoice" ,vpVoiceID); // no return value } /// /// Sets the volume of text-to-speech output. /// /// Volume (between 0.0 and 1.0). public void setVolume( float volume) { Variant vvolume; vvolume = new Variant(volume); Variant result = call("setVolume" ,vvolume); // no return value } /// /// returns true if the method is currently running /// /// the ID of the method to wait for public void stop( int id) { Variant vid; vid = new Variant(id); Variant result = call("stop" ,vid); // no return value } /// /// This method stops the current and all the pending tasks immediately. /// public void stopAll() { Variant result = call("stopAll" ); // no return value } /// /// Returns the version of the module. /// /// A string containing the version of the module. public String version() { Variant result = call("version" ); return result.toString(); } /// /// Wait for the end of a long running method that was called using 'post' /// /// The ID of the method that was returned when calling the method using 'post' /// The timeout period in ms. To wait indefinately, use a timeoutPeriod of zero. /// True if the timeout period terminated. False if the method returned. public Boolean wait( int id, int timeoutPeriod) { Variant vid; vid = new Variant(id); Variant vtimeoutPeriod; vtimeoutPeriod = new Variant(timeoutPeriod); Variant result = call("wait" ,vid, vtimeoutPeriod); return result.toBoolean(); } }
最新版本iperf,官网下载直接编译,适合win10系统。 iperf 3.9 (cJSON 1.7.13) CYGWIN_NT-10.0-19041 LAPTOP-4KUBOSU3 3.2.0-340.x86_64 2021-03-29 08:42 UTC x86_64 Optional features available: CPU affinity setting Usage: iperf3 [-s|-c host] [options] iperf3 [-h|--help] [-v|--version] Server or Client: -p, --port # server port to listen on/connect to -f, --format [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits -i, --interval # seconds between periodic throughput reports -F, --file name xmit/recv the specified file -A, --affinity n/n,m set CPU affinity -B, --bind bind to the interface associated with the address -V, --verbose more detailed output -J, --json output in JSON format --logfile f send output to a log file --forceflush force flushing output at every interval --timestamps emit a timestamp at the start of each output line (using optional format string as per strftime(3)) -d, --debug emit debugging output -v, --version show version information and quit -h, --help show this message and quit Server specific: -s, --server run in server mode -D, --daemon run the server as a daemon -I, --pidfile file write PID file -1, --one-off handle one client connection then exit --server-bitrate-limit #[KMG][/#] server's total bit rate limit (default 0 = no limit) (optional slash and number of secs interval for averaging total data rate. Default is 5 seconds) Client specific: -c, --client run in client mode, connecting to -u, --udp use UDP rather than TCP --connect-timeout # timeout for control connection setup (ms) -b, --bitrate #[KMG][/#] target bitrate in bits/sec (0 for unlimited)
-------------------------------------------------------------------------------- 概述 软件包 类 使用 树 已过时 索引 帮助 上一个类 下一个类 框架 无框架 所有类 摘要: 嵌套 | 字段 | 构造方法 | 方法 详细信息: 字段 | 构造方法 | 方法 -------------------------------------------------------------------------------- com.opensymphony.xwork2 类 ActionSupport java.lang.Object 继承者 com.opensymphony.xwork2.ActionSupport 所有已实现的接口: Action, LocaleProvider, TextProvider, Validateable, ValidationAware, Serializable 直接已知子类: DefaultActionSupport -------------------------------------------------------------------------------- public class ActionSupportextends Objectimplements Action, Validateable, ValidationAware, TextProvider, LocaleProvider, SerializableProvides a default implementation for the most common actions. See the documentation for all the interfaces this class implements for more detailed information. 另请参见: 序列化表格 -------------------------------------------------------------------------------- 字段摘要 从接口 com.opensymphony.xwork2.Action 继承的字段 ERROR, INPUT, LOGIN, NONE, SUCCESS 构造方法摘要 ActionSupport() 方法摘要 void addActionError(String anErrorMessage) Add an Action-level error message to this Action. void addActionMessage(String aMessage) Add an Action-level message to this Action. void addFieldError(String fieldName, String errorMessage) Add an error message for a given field. void clearActionErrors() Clears action errors. void clearErrors() Clears all errors. void clearErrorsAndMessages() Clears all errors and messages. void clearFieldErrors() Clears field errors. void clearMessages() Clears messages. Object clone() String doDefault() String execute() A default implementation that does nothing an returns "success". Collection<String> getActionErrors() Get the Collection of Action-level error messages for this action. Collection<String> getActionMessages() Get the Collection of Action-level messages for this action. Collection<String> getErrorMessages() 已过时。 Use getActionErrors(). Map<String,List<String>> getErrors() 已过时。 Use getFieldErrors(). Map<String,List<String>> getFieldErrors() Get the field specific errors associated with this action. String getFormatted(String key, String expr) Dedicated method to support I10N and conversion errors Locale getLocale() Gets the provided locale. String getText(String aTextName) Gets a message based on a message key, or null if no message is found. String getText(String aTextName, List<?> args) Gets a message based on a key using the supplied args, as defined in MessageFormat, or null if no message is found. String getText(String aTextName, String defaultValue) Gets a message based on a key, or, if the message is not found, a supplied default value is returned. String getText(String key, String[] args) Gets a message based on a key using the supplied args, as defined in MessageFormat, or null if no message is found. String getText(String aTextName, String defaultValue, List<?> args) Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. String getText(String key, String defaultValue, List<?> args, ValueStack stack) Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. String getText(String aTextName, String defaultValue, String obj) Gets a message based on a key using the supplied obj, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. String getText(String key, String defaultValue, String[] args) Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. String getText(String key, String defaultValue, String[] args, ValueStack stack) Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. ResourceBundle getTexts() Get the resource bundle associated with the implementing class (usually an action). ResourceBundle getTexts(String aBundleName) Get the named bundle, such as "com/acme/Foo". boolean hasActionErrors() Check whether there are any Action-level error messages. boolean hasActionMessages() Checks whether there are any Action-level messages. boolean hasErrors() Checks whether there are any action errors or field errors. boolean hasFieldErrors() Check whether there are any field errors associated with this action. boolean hasKey(String key) Checks if a message key exists. String input() void pause(String result) Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return the specified result, such as Action.SUCCESS, Action.INPUT, etc. void setActionErrors(Collection<String> errorMessages) Set the Collection of Action-level String error messages. void setActionMessages(Collection<String> messages) Set the Collection of Action-level String messages (not errors). void setContainer(Container container) void setFieldErrors(Map<String,List<String>> errorMap) Set the field error map of fieldname (String) to Collection of String error messages. void validate() A default implementation that validates nothing. 从类 java.lang.Object 继承的方法 equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 构造方法详细信息 ActionSupport public ActionSupport()方法详细信息 setActionErrors public void setActionErrors(Collection<String> errorMessages)从接口 ValidationAware 复制的描述 Set the Collection of Action-level String error messages. 指定者: 接口 ValidationAware 中的 setActionErrors 参数: errorMessages - Collection of String error messages -------------------------------------------------------------------------------- getActionErrors public Collection<String> getActionErrors()从接口 ValidationAware 复制的描述 Get the Collection of Action-level error messages for this action. Error messages should not be added directly here, as implementations are free to return a new Collection or an Unmodifiable Collection. 指定者: 接口 ValidationAware 中的 getActionErrors 返回: Collection of String error messages -------------------------------------------------------------------------------- setActionMessages public void setActionMessages(Collection<String> messages)从接口 ValidationAware 复制的描述 Set the Collection of Action-level String messages (not errors). 指定者: 接口 ValidationAware 中的 setActionMessages 参数: messages - Collection of String messages (not errors). -------------------------------------------------------------------------------- getActionMessages public Collection<String> getActionMessages()从接口 ValidationAware 复制的描述 Get the Collection of Action-level messages for this action. Messages should not be added directly here, as implementations are free to return a new Collection or an Unmodifiable Collection. 指定者: 接口 ValidationAware 中的 getActionMessages 返回: Collection of String messages -------------------------------------------------------------------------------- getErrorMessages @Deprecated public Collection<String> getErrorMessages()已过时。 Use getActionErrors(). -------------------------------------------------------------------------------- getErrors @Deprecated public Map<String,List<String>> getErrors()已过时。 Use getFieldErrors(). -------------------------------------------------------------------------------- setFieldErrors public void setFieldErrors(Map<String,List<String>> errorMap)从接口 ValidationAware 复制的描述 Set the field error map of fieldname (String) to Collection of String error messages. 指定者: 接口 ValidationAware 中的 setFieldErrors 参数: errorMap - field error map -------------------------------------------------------------------------------- getFieldErrors public Map<String,List<String>> getFieldErrors()从接口 ValidationAware 复制的描述 Get the field specific errors associated with this action. Error messages should not be added directly here, as implementations are free to return a new Collection or an Unmodifiable Collection. 指定者: 接口 ValidationAware 中的 getFieldErrors 返回: Map with errors mapped from fieldname (String) to Collection of String error messages -------------------------------------------------------------------------------- getLocale public Locale getLocale()从接口 LocaleProvider 复制的描述 Gets the provided locale. 指定者: 接口 LocaleProvider 中的 getLocale 返回: the locale. -------------------------------------------------------------------------------- hasKey public boolean hasKey(String key)从接口 TextProvider 复制的描述 Checks if a message key exists. 指定者: 接口 TextProvider 中的 hasKey 参数: key - message key to check for 返回: boolean true if key exists, false otherwise. -------------------------------------------------------------------------------- getText public String getText(String aTextName)从接口 TextProvider 复制的描述 Gets a message based on a message key, or null if no message is found. 指定者: 接口 TextProvider 中的 getText 参数: aTextName - the resource bundle key that is to be searched for 返回: the message as found in the resource bundle, or null if none is found. -------------------------------------------------------------------------------- getText public String getText(String aTextName, String defaultValue)从接口 TextProvider 复制的描述 Gets a message based on a key, or, if the message is not found, a supplied default value is returned. 指定者: 接口 TextProvider 中的 getText 参数: aTextName - the resource bundle key that is to be searched for defaultValue - the default value which will be returned if no message is found 返回: the message as found in the resource bundle, or defaultValue if none is found -------------------------------------------------------------------------------- getText public String getText(String aTextName, String defaultValue, String obj)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied obj, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. 指定者: 接口 TextProvider 中的 getText 参数: aTextName - the resource bundle key that is to be searched for defaultValue - the default value which will be returned if no message is found obj - obj to be used in a MessageFormat message 返回: the message as found in the resource bundle, or defaultValue if none is found -------------------------------------------------------------------------------- getText public String getText(String aTextName, List<?> args)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied args, as defined in MessageFormat, or null if no message is found. 指定者: 接口 TextProvider 中的 getText 参数: aTextName - the resource bundle key that is to be searched for args - a list args to be used in a MessageFormat message 返回: the message as found in the resource bundle, or null if none is found. -------------------------------------------------------------------------------- getText public String getText(String key, String[] args)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied args, as defined in MessageFormat, or null if no message is found. 指定者: 接口 TextProvider 中的 getText 参数: key - the resource bundle key that is to be searched for args - an array args to be used in a MessageFormat message 返回: the message as found in the resource bundle, or null if none is found. -------------------------------------------------------------------------------- getText public String getText(String aTextName, String defaultValue, List<?> args)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. 指定者: 接口 TextProvider 中的 getText 参数: aTextName - the resource bundle key that is to be searched for defaultValue - the default value which will be returned if no message is found args - a list args to be used in a MessageFormat message 返回: the message as found in the resource bundle, or defaultValue if none is found -------------------------------------------------------------------------------- getText public String getText(String key, String defaultValue, String[] args)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. 指定者: 接口 TextProvider 中的 getText 参数: key - the resource bundle key that is to be searched for defaultValue - the default value which will be returned if no message is found args - an array args to be used in a MessageFormat message 返回: the message as found in the resource bundle, or defaultValue if none is found -------------------------------------------------------------------------------- getText public String getText(String key, String defaultValue, List<?> args, ValueStack stack)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. Instead of using the value stack in the ActionContext this version of the getText() method uses the provided value stack. 指定者: 接口 TextProvider 中的 getText 参数: key - the resource bundle key that is to be searched for defaultValue - the default value which will be returned if no message is found args - a list args to be used in a MessageFormat message stack - the value stack to use for finding the text 返回: the message as found in the resource bundle, or defaultValue if none is found -------------------------------------------------------------------------------- getText public String getText(String key, String defaultValue, String[] args, ValueStack stack)从接口 TextProvider 复制的描述 Gets a message based on a key using the supplied args, as defined in MessageFormat, or, if the message is not found, a supplied default value is returned. Instead of using the value stack in the ActionContext this version of the getText() method uses the provided value stack. 指定者: 接口 TextProvider 中的 getText 参数: key - the resource bundle key that is to be searched for defaultValue - the default value which will be returned if no message is found args - an array args to be used in a MessageFormat message stack - the value stack to use for finding the text 返回: the message as found in the resource bundle, or defaultValue if none is found -------------------------------------------------------------------------------- getFormatted public String getFormatted(String key, String expr)Dedicated method to support I10N and conversion errors 参数: key - message which contains formatting string expr - that should be formatted 返回: formatted expr with format specified by key -------------------------------------------------------------------------------- getTexts public ResourceBundle getTexts()从接口 TextProvider 复制的描述 Get the resource bundle associated with the implementing class (usually an action). 指定者: 接口 TextProvider 中的 getTexts 返回: the bundle -------------------------------------------------------------------------------- getTexts public ResourceBundle getTexts(String aBundleName)从接口 TextProvider 复制的描述 Get the named bundle, such as "com/acme/Foo". 指定者: 接口 TextProvider 中的 getTexts 参数: aBundleName - the name of the resource bundle, such as "com/acme/Foo". 返回: the bundle -------------------------------------------------------------------------------- addActionError public void addActionError(String anErrorMessage)从接口 ValidationAware 复制的描述 Add an Action-level error message to this Action. 指定者: 接口 ValidationAware 中的 addActionError 参数: anErrorMessage - the error message -------------------------------------------------------------------------------- addActionMessage public void addActionMessage(String aMessage)从接口 ValidationAware 复制的描述 Add an Action-level message to this Action. 指定者: 接口 ValidationAware 中的 addActionMessage 参数: aMessage - the message -------------------------------------------------------------------------------- addFieldError public void addFieldError(String fieldName, String errorMessage)从接口 ValidationAware 复制的描述 Add an error message for a given field. 指定者: 接口 ValidationAware 中的 addFieldError 参数: fieldName - name of field errorMessage - the error message -------------------------------------------------------------------------------- input public String input() throws Exception抛出: Exception -------------------------------------------------------------------------------- doDefault public String doDefault() throws Exception抛出: Exception -------------------------------------------------------------------------------- execute public String execute() throws ExceptionA default implementation that does nothing an returns "success". Subclasses should override this method to provide their business logic. See also Action.execute(). 指定者: 接口 Action 中的 execute 返回: returns Action.SUCCESS 抛出: Exception - can be thrown by subclasses. -------------------------------------------------------------------------------- hasActionErrors public boolean hasActionErrors()从接口 ValidationAware 复制的描述 Check whether there are any Action-level error messages. 指定者: 接口 ValidationAware 中的 hasActionErrors 返回: true if any Action-level error messages have been registered -------------------------------------------------------------------------------- hasActionMessages public boolean hasActionMessages()从接口 ValidationAware 复制的描述 Checks whether there are any Action-level messages. 指定者: 接口 ValidationAware 中的 hasActionMessages 返回: true if any Action-level messages have been registered -------------------------------------------------------------------------------- hasErrors public boolean hasErrors()从接口 ValidationAware 复制的描述 Checks whether there are any action errors or field errors. Note: that this does not have the same meaning as in WW 1.x. 指定者: 接口 ValidationAware 中的 hasErrors 返回: (hasActionErrors() || hasFieldErrors()) -------------------------------------------------------------------------------- hasFieldErrors public boolean hasFieldErrors()从接口 ValidationAware 复制的描述 Check whether there are any field errors associated with this action. 指定者: 接口 ValidationAware 中的 hasFieldErrors 返回: whether there are any field errors -------------------------------------------------------------------------------- clearFieldErrors public void clearFieldErrors()Clears field errors. Useful for Continuations and other situations where you might want to clear parts of the state on the same action. -------------------------------------------------------------------------------- clearActionErrors public void clearActionErrors()Clears action errors. Useful for Continuations and other situations where you might want to clear parts of the state on the same action. -------------------------------------------------------------------------------- clearMessages public void clearMessages()Clears messages. Useful for Continuations and other situations where you might want to clear parts of the state on the same action. -------------------------------------------------------------------------------- clearErrors public void clearErrors()Clears all errors. Useful for Continuations and other situations where you might want to clear parts of the state on the same action. -------------------------------------------------------------------------------- clearErrorsAndMessages public void clearErrorsAndMessages()Clears all errors and messages. Useful for Continuations and other situations where you might want to clear parts of the state on the same action. -------------------------------------------------------------------------------- validate public void validate()A default implementation that validates nothing. Subclasses should override this method to provide validations. 指定者: 接口 Validateable 中的 validate -------------------------------------------------------------------------------- clone public Object clone() throws CloneNotSupportedException覆盖: 类 Object 中的 clone 抛出: CloneNotSupportedException -------------------------------------------------------------------------------- pause public void pause(String result)Stops the action invocation immediately (by throwing a PauseException) and causes the action invocation to return the specified result, such as Action.SUCCESS, Action.INPUT, etc. The next time this action is invoked (and using the same continuation ID), the method will resume immediately after where this method was called, with the entire call stack in the execute method restored. Note: this method can only be called within the execute() method. 参数: result - the result to return - the same type of return value in the execute() method. -------------------------------------------------------------------------------- setContainer public void setContainer(Container container) -------------------------------------------------------------------------------- 概述 软件包 类 使用 树 已过时 索引 帮助 上一个类 下一个类 框架 无框架 所有类 摘要: 嵌套 | 字段 | 构造方法 | 方法 详细信息: 字段 | 构造方法 | 方法 --------------------------------------------------------------------------------

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值