scopedname.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 787 行 · 第 1/3 页

HTML
787 行
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the head of this scoped name. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;LocalName</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/util/ScopedName.html#name()">name</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the last element in the sequence of <A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">parsed names</A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;GenericName</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/util/ScopedName.html#path()">path</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a name which contains every element of the <A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">parsed names list</A> except for the last element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;ScopedName</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/util/ScopedName.html#push(org.opengis.util.GenericName)">push</A></B>(GenericName&nbsp;scope)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns this name expanded with the specified scope. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;NameSpace</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/util/ScopedName.html#scope()">scope</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the scope (name space) in which this name is local. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;GenericName</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/util/ScopedName.html#tail()">tail</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tail of this scoped name. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;GenericName</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/util/ScopedName.html#toFullyQualifiedName()">toFullyQualifiedName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a view of this name as a fully-qualified name. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_GenericName"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="../../../org/geotools/util/GenericName.html" title="class in org.geotools.util">GenericName</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/geotools/util/GenericName.html#compareTo(java.lang.Object)">compareTo</A>, <A HREF="../../../org/geotools/util/GenericName.html#toInternationalString()">toInternationalString</A>, <A HREF="../../../org/geotools/util/GenericName.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_ScopedName"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface ScopedName</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>toString</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_GenericName"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface GenericName</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>toInternationalString</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Comparable"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface <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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html#compareTo(java.lang.Object)" title="class or interface in java.lang">compareTo</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ScopedName(org.opengis.util.GenericName, java.lang.CharSequence)"><!-- --></A><H3>ScopedName</H3><PRE>public <B>ScopedName</B>(GenericName&nbsp;scope,                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;name)</PRE><DL><DD>Constructs a scoped name from the specified international string. If the specified name is an <CODE>InternationalString</CODE>, then the <code>toString(null)</code> method will be used in order to fetch an unlocalized name. Otherwise, the <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html#toString()" title="class or interface in java.lang">toString</A>()</code> method will be used.<P><DT><B>Parameters:</B><DD><CODE>scope</CODE> - The scope (or "tail") of the variable.<DD><CODE>name</CODE> - The head (never ).</DL><HR><A NAME="ScopedName(org.opengis.util.GenericName, char, java.lang.CharSequence)"><!-- --></A><H3>ScopedName</H3><PRE>public <B>ScopedName</B>(GenericName&nbsp;scope,                  char&nbsp;separator,                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html" title="class or interface in java.lang">CharSequence</A>&nbsp;name)</PRE><DL><DD>Constructs a scoped name from the specified international string. If the specified name is an <CODE>InternationalString</CODE>, then the <code>toString(null)</code> method will be used in order to fetch an unlocalized name. Otherwise, the <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CharSequence.html#toString()" title="class or interface in java.lang">toString</A>()</code> method will be used.<P><DT><B>Parameters:</B><DD><CODE>scope</CODE> - The scope (or "tail") of the variable.<DD><CODE>separator</CODE> - The separator character (usually <code>':'</code> or <code>'/'</code>).<DD><CODE>name</CODE> - The head (never ).</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="head()"><!-- --></A><H3>head</H3><PRE>public LocalName <B>head</B>()</PRE><DL><DD>Returns the head of this scoped name. This is the first elements in the sequence of <A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">parsed names</A>. The head element must exists in the same name space than this scoped name. In other words, the following relationship must holds: <p> <ul>   <li><code>head().scope() == this.<A HREF="../../../org/geotools/util/ScopedName.html#scope()">scope()</A></code></li> </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE>head</CODE> in interface <CODE>ScopedName</CODE></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="tail()"><!-- --></A><H3>tail</H3><PRE>public GenericName <B>tail</B>()</PRE><DL><DD>Returns the tail of this scoped name. The returned name contains every elements of the <A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">parsed names list</A> except for the first one, which is the <A HREF="../../../org/geotools/util/ScopedName.html#head()">head</A>. In other words, the following relationship must holds: <p> <ul>   <li><code>tail().getParsedNames() == this.<A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">getParsedNames()</A>.sublist(1,end)</code></li> </ul> <p> <strong>Note:</strong> This condition can be understood in terms of the Java <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#equals(java.lang.Object)" title="class or interface in java.util"><CODE>equals</CODE></A> method instead of the Java identity comparator .<P><DD><DL><DT><B>Specified by:</B><DD><CODE>tail</CODE> in interface <CODE>ScopedName</CODE></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD></DL><HR><A NAME="path()"><!-- --></A><H3>path</H3><PRE>public GenericName <B>path</B>()</PRE><DL><DD>Returns a name which contains every element of the <A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">parsed names list</A> except for the last element.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>path</CODE> in interface <CODE>ScopedName</CODE></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html#getPath()" title="class or interface in java.io"><CODE>File.getPath()</CODE></A></DL></DD></DL><HR><A NAME="name()"><!-- --></A><H3>name</H3><PRE>public LocalName <B>name</B>()</PRE><DL><DD>Returns the last element in the sequence of <A HREF="../../../org/geotools/util/ScopedName.html#getParsedNames()">parsed names</A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>name</CODE> in interface <CODE>ScopedName</CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/util/GenericName.html#name()">name</A></CODE> in class <CODE><A HREF="../../../org/geotools/util/GenericName.html" title="class in org.geotools.util">GenericName</A></CODE></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/File.html#getName()" title="class or interface in java.io"><CODE>File.getName()</CODE></A></DL></DD></DL><HR><A NAME="scope()"><!-- --></A><H3>scope</H3><PRE>public NameSpace <B>scope</B>()</PRE><DL><DD>Returns the scope (name space) in which this name is local. The scope is set on creation and is not modifiable. The scope of a name determines where a name "starts". For instance, if a name has a <A HREF="../../../org/geotools/util/ScopedName.html#depth()">depth</A> of two () and is associated with a name space having the name , then the fully qualified name would be .<P><DD><DL><DT><B>Specified by:</B><DD><CODE>scope</CODE> in interface <CODE>GenericName</CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/geotools/util/GenericName.html#scope()">scope</A></CODE> in class <CODE><A HREF="../../../org/geotools/util/GenericName.html" title="class in org.geotools.util">GenericName</A></CODE></DL></DD><DD><DL><DT><B>Since:</B></DT>  <DD>2.3</DD></DL></DD>

⌨️ 快捷键说明

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