⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 openmbeanattributeinfosupport.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DT><B>Parameters:</B><DD><CODE>name</CODE> - cannot be a null or empty string.<DD><CODE>description</CODE> - cannot be a null or empty string.<DD><CODE>openType</CODE> - cannot be null.<DD><CODE>isReadable</CODE> - <tt>true</tt> if the attribute has a getter exposed for management.<DD><CODE>isWritable</CODE> - <tt>true</tt> if the attribute has a setter exposed for management.<DD><CODE>isIs</CODE> - <tt>true</tt> if the attribute's getter is of the form <tt>is<i>XXX</i></tt>.<DD><CODE>defaultValue</CODE> - must be a valid value for the <var>openType</var> specified for this attribute;			    default value not supported for <tt>ArrayType</tt> and <tt>TabularType</tt>;			    can be null, in which case it means that no default value is set.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <var>name</var> or <var>description</var> are null or empty string,					 or <var>openType</var> is null.<DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - if <var>defaultValue</var> is not a valid value for the specified <var>openType</var>,				  or <var>defaultValue</var> is non null and 				  <var>openType</var> is an <tt>ArrayType</tt> or a <tt>TabularType</tt>.</DL><HR><A NAME="OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Object[])"><!-- --></A><H3>OpenMBeanAttributeInfoSupport</H3><PRE>public <B>OpenMBeanAttributeInfoSupport</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;description,                                     <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A>&nbsp;openType,                                     boolean&nbsp;isReadable,                                     boolean&nbsp;isWritable,                                     boolean&nbsp;isIs,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;defaultValue,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;legalValues)                              throws <A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></PRE><DL><DD>Constructs an <tt>OpenMBeanAttributeInfoSupport</tt> instance, which describes the attribute of an open MBean with the specified <var>name</var>, <var>openType</var>, <var>description</var>,  <var>defaultValue</var> and <var>legalValues</var>, and the specified read/write access properties. The contents of <var>legalValues</var> are internally dumped into an unmodifiable <tt>Set</tt>, so subsequent modifications of the array referenced by <var>legalValues</var> have no impact on  this <tt>OpenMBeanAttributeInfoSupport</tt> instance.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - cannot be a null or empty string.<DD><CODE>description</CODE> - cannot be a null or empty string.<DD><CODE>openType</CODE> - cannot be null.<DD><CODE>isReadable</CODE> - <tt>true</tt> if the attribute has a getter exposed for management.<DD><CODE>isWritable</CODE> - <tt>true</tt> if the attribute has a setter exposed for management.<DD><CODE>isIs</CODE> - <tt>true</tt> if the attribute's getter is of the form <tt>is<i>XXX</i></tt>.<DD><CODE>defaultValue</CODE> - must be a valid value for the <var>openType</var> specified for this attribute;			    default value not supported for <tt>ArrayType</tt> and <tt>TabularType</tt>;			    can be null, in which case it means that no default value is set.<DD><CODE>legalValues</CODE> - each contained value must be valid for the <var>openType</var> specified for this attribute;			    legal values not supported for <tt>ArrayType</tt> and <tt>TabularType</tt>;			    can be null or empty.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <var>name</var> or <var>description</var> are null or empty string,					 or <var>openType</var> is null.<DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - if <var>defaultValue</var> is not a valid value for the specified <var>openType</var>,				  or one value in <var>legalValues</var> is not valid for the specified <var>openType</var>,				  or <var>defaultValue</var> is non null and 				  <var>openType</var> is an <tt>ArrayType</tt> or a <tt>TabularType</tt>,				  or <var>legalValues</var> is non null and non empty and				  <var>openType</var> is an <tt>ArrayType</tt> or a <tt>TabularType</tt>,				  or <var>legalValues</var> is non null and non empty and				  <var>defaultValue</var> is not contained in <var>legalValues</var>.</DL><HR><A NAME="OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Comparable, java.lang.Comparable)"><!-- --></A><H3>OpenMBeanAttributeInfoSupport</H3><PRE>public <B>OpenMBeanAttributeInfoSupport</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;description,                                     <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A>&nbsp;openType,                                     boolean&nbsp;isReadable,                                     boolean&nbsp;isWritable,                                     boolean&nbsp;isIs,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;defaultValue,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A>&nbsp;minValue,                                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A>&nbsp;maxValue)                              throws <A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></PRE><DL><DD>Constructs an <tt>OpenMBeanAttributeInfoSupport</tt> instance, which describes the attribute  used in one or more operations or constructors of a class of open MBeans, with the specified <var>name</var>, <var>openType</var>, <var>description</var>,  <var>defaultValue</var>, <var>minValue</var> and <var>maxValue</var>. It is possible to specify minimal and maximal values only for an open type  whose values are <tt>Comparable</tt>.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - cannot be a null or empty string.<DD><CODE>description</CODE> - cannot be a null or empty string.<DD><CODE>openType</CODE> - cannot be null.<DD><CODE>isReadable</CODE> - <tt>true</tt> if the attribute has a getter exposed for management.<DD><CODE>isWritable</CODE> - <tt>true</tt> if the attribute has a setter exposed for management.<DD><CODE>isIs</CODE> - <tt>true</tt> if the attribute's getter is of the form <tt>is<i>XXX</i></tt>.<DD><CODE>defaultValue</CODE> - must be a valid value for the <var>openType</var> specified for this attribute;			    default value not supported for <tt>ArrayType</tt> and <tt>TabularType</tt>;			    can be null, in which case it means that no default value is set.<DD><CODE>minValue</CODE> - must be valid for the <var>openType</var> specified for this attribute;			 can be null, in which case it means that no minimal value is set.<DD><CODE>maxValue</CODE> - must be valid for the <var>openType</var> specified for this attribute;			 can be null, in which case it means that no maximal value is set.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <var>name</var> or <var>description</var> are null or empty string,					 or <var>openType</var> is null.<DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - if <var>defaultValue</var>, <var>minValue</var> or <var>maxValue</var>				  is not a valid value for the specified <var>openType</var>,				  or <var>defaultValue</var> is non null and 				  <var>openType</var> is an <tt>ArrayType</tt> or a <tt>TabularType</tt>,				  or both <var>minValue</var> and <var>maxValue</var> are non-null and				  <tt>minValue.compareTo(maxValue) > 0</tt> is <tt>true</tt>,				  or both <var>defaultValue</var> and <var>minValue</var> are non-null and				  <tt>minValue.compareTo(defaultValue) > 0</tt> is <tt>true</tt>,				  or both <var>defaultValue</var> and <var>maxValue</var> are non-null and				  <tt>defaultValue.compareTo(maxValue) > 0</tt> is <tt>true</tt>.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getOpenType()"><!-- --></A><H3>getOpenType</H3><PRE>public <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A> <B>getOpenType</B>()</PRE><DL><DD>Returns the open type for the values of the attribute described by this <tt>OpenMBeanAttributeInfoSupport</tt> instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getOpenType()">getOpenType</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the open type.</DL></DD></DL><HR><A NAME="getDefaultValue()"><!-- --></A><H3>getDefaultValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getDefaultValue</B>()</PRE><DL><DD>Returns the default value for the attribute described by this <tt>OpenMBeanAttributeInfoSupport</tt> instance, if specified, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getDefaultValue()">getDefaultValue</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the default value.</DL></DD></DL><HR><A NAME="getLegalValues()"><!-- --></A><H3>getLegalValues</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>getLegalValues</B>()</PRE><DL><DD>Returns an unmodifiable Set of legal values for the attribute described by this <tt>OpenMBeanAttributeInfoSupport</tt> instance, if specified, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getLegalValues()">getLegalValues</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the set of legal values.</DL></DD></DL><HR><A NAME="getMinValue()"><!-- --></A><H3>getMinValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A> <B>getMinValue</B>()</PRE><DL><DD>Returns the minimal value for the attribute described by this <tt>OpenMBeanAttributeInfoSupport</tt> instance, if specified, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getMinValue()">getMinValue</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the minimum value.</DL></DD></DL><HR><A NAME="getMaxValue()"><!-- --></A><H3>getMaxValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A> <B>getMaxValue</B>()</PRE><DL><DD>Returns the maximal value for the attribute described by this <tt>OpenMBeanAttributeInfoSupport</tt> instance, if specified, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getMaxValue()">getMaxValue</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the maximum value.</DL></DD></DL><HR><A NAME="hasDefaultValue()"><!-- --></A><H3>hasDefaultValue</H3><PRE>public boolean <B>hasDefaultValue</B>()</PRE><DL><DD>Returns <tt>true</tt> if this <tt>OpenMBeanAttributeInfoSupport</tt> instance specifies a non-null default value  for the described attribute, <tt>false</tt> otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#hasDefaultValue()">hasDefaultValue</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if there is a default value.</DL></DD></DL><HR><A NAME="hasLegalValues()"><!-- --></A><H3>hasLegalValues</H3><PRE>public boolean <B>hasLegalValues</B>()</PRE><DL><DD>Returns <tt>true</tt> if this <tt>OpenMBeanAttributeInfoSupport</tt> instance specifies a non-null set of legal values for the described attribute, <tt>false</tt> otherwise.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -