📄 complextype.html
字号:
<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object for which this attributes value is valid<DD><CODE>attribute</CODE> - The identification of the attribute to be set and the value it is to be set to.<DT><B>Throws:</B><DD><CODE>javax.management.AttributeNotFoundException</CODE> - is thrown if there is no attribute with this name.<DD><CODE>javax.management.InvalidAttributeValueException</CODE> - is thrown if the attribute is of wrong type and cannot be converted to the right type.<DT><B>See Also:</B><DD><CODE>DynamicMBean.setAttribute(javax.management.Attribute)</CODE></DL></DD></DL><HR><A NAME="getDefinition(java.lang.String)"><!-- --></A><H3>getDefinition</H3><PRE><A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A> <B>getDefinition</B>(java.lang.String attributeName)</PRE><DL><DD>Get the content type definition for an attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attributeName</CODE> - the name of the attribute to get definition for.<DT><B>Returns:</B><DD>the content type definition for the attribute.</DL></DD></DL><HR><A NAME="checkValue(org.archive.crawler.settings.CrawlerSettings, java.lang.String, java.lang.Object)"><!-- --></A><H3>checkValue</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/Constraint.FailedCheck.html" title="class in org.archive.crawler.settings">Constraint.FailedCheck</A> <B>checkValue</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String attributeName, java.lang.Object value)</PRE><DL><DD>Check an attribute to see if it fulfills all the constraints set on the definition of this attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the CrawlerSettings object for which this check was executed.<DD><CODE>attributeName</CODE> - the name of the attribute to check.<DD><CODE>value</CODE> - the value to check.<DT><B>Returns:</B><DD>null if everything is ok, otherwise it returns a FailedCheck object with detailed information of what went wrong.</DL></DD></DL><HR><A NAME="checkValue(org.archive.crawler.settings.CrawlerSettings, java.lang.String, org.archive.crawler.settings.Type, java.lang.Object)"><!-- --></A><H3>checkValue</H3><PRE><A HREF="../../../../org/archive/crawler/settings/Constraint.FailedCheck.html" title="class in org.archive.crawler.settings">Constraint.FailedCheck</A> <B>checkValue</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String attributeName, <A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A> definition, java.lang.Object value)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="unsetAttribute(org.archive.crawler.settings.CrawlerSettings, java.lang.String)"><!-- --></A><H3>unsetAttribute</H3><PRE>public java.lang.Object <B>unsetAttribute</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String name) throws javax.management.AttributeNotFoundException</PRE><DL><DD>Unset an attribute on a per host level. This methods removes an override on a per host or per domain level.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object for which the attribute should be unset.<DD><CODE>name</CODE> - the name of the attribute.<DT><B>Returns:</B><DD>The removed attribute or null if nothing was removed.<DT><B>Throws:</B><DD><CODE>javax.management.AttributeNotFoundException</CODE> - is thrown if the attribute name doesn't exist.</DL></DD></DL><HR><A NAME="getAttributes(java.lang.String[])"><!-- --></A><H3>getAttributes</H3><PRE>public javax.management.AttributeList <B>getAttributes</B>(java.lang.String[] name)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>getAttributes</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setAttributes(javax.management.AttributeList)"><!-- --></A><H3>setAttributes</H3><PRE>public javax.management.AttributeList <B>setAttributes</B>(javax.management.AttributeList attributes)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>setAttributes</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="invoke(java.lang.String, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>invoke</H3><PRE>public java.lang.Object <B>invoke</B>(java.lang.String arg0, java.lang.Object[] arg1, java.lang.String[] arg2) throws javax.management.MBeanException, javax.management.ReflectionException</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>invoke</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.ReflectionException</CODE></DL></DD></DL><HR><A NAME="getMBeanInfo()"><!-- --></A><H3>getMBeanInfo</H3><PRE>public javax.management.MBeanInfo <B>getMBeanInfo</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>getMBeanInfo</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getMBeanInfo(java.lang.Object)"><!-- --></A><H3>getMBeanInfo</H3><PRE>public javax.management.MBeanInfo <B>getMBeanInfo</B>(java.lang.Object context)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAttributeInfo(org.archive.crawler.settings.CrawlerSettings, java.lang.String)"><!-- --></A><H3>getAttributeInfo</H3><PRE>public javax.management.MBeanAttributeInfo <B>getAttributeInfo</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String name)</PRE><DL><DD>Get the effective Attribute info for an element of this type from a settings object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object for which the Attribute info is effective.<DD><CODE>name</CODE> - the name of the element to get the attribute for.<DT><B>Returns:</B><DD>the attribute info</DL></DD></DL><HR><A NAME="getAttributeInfo(java.lang.String)"><!-- --></A><H3>getAttributeInfo</H3><PRE>public javax.management.MBeanAttributeInfo <B>getAttributeInfo</B>(java.lang.String name)</PRE><DL><DD>Get the Attribute info for an element of this type from the global settings.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the element to get the attribute for.<DT><B>Returns:</B><DD>the attribute info</DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public java.lang.String <B>getDescription</B>()</PRE><DL><DD>Get the description of this type The description should be suitable for showing in a user interface.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#getDescription()">getDescription</A></CODE> in class <CODE><A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>this type's description</DL></DD></DL><HR><A NAME="getParent()"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> <B>getParent</B>()</PRE><DL><DD>Get the parent of this ComplexType.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the parent of this ComplexType.</DL></DD></DL><HR><A NAME="setDescription(java.lang.String)"><!-- --></A><H3>setDescription</H3><PRE>public void <B>setDescription</B>(java.lang.String string)</PRE><DL><DD>Set the description of this ComplexType The description should be suitable for showing in a user interface.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>string</CODE> - the description to set for this type.</DL></DD></DL><HR><A NAME="getDefaultValue()"><!-- --></A><H3>getDefaultValue</H3><PRE>public java.lang.Object <B>getDefaultValue</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/archive/crawler/settings/Type.html#getDefaultValue()">Type</A></CODE></B></DD><DD>The default value for this type<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/archive/cra
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -