📄 ref.html
字号:
<DT><B>Returns:</B><DD>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this is not a project, folder or resource reference</DL>
</DD>
</DL>
<HR>
<A NAME="getProjectName()"><!-- --></A><H3>
getProjectName</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getProjectName</B>()
throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></PRE>
<DL>
<DD>Returns the project name If this is a resource reference, project reference of a folder reference. Otherwise throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang"><CODE>IllegalStateException</CODE></A>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this is not a project, folder or resource reference</DL>
</DD>
</DL>
<HR>
<A NAME="getParentRef()"><!-- --></A><H3>
getParentRef</H3>
<PRE>
public <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>getParentRef</B>()</PRE>
<DL>
<DD>Returns a reference to the parent. Returns null if this is domain ref. Returns domain ref, if this is a project reference. Returns the parent (project or folder) reference if this is a folder or a resource.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isDescendantOf(com.bea.wli.config.Ref)"><!-- --></A><H3>
isDescendantOf</H3>
<PRE>
public boolean <B>isDescendantOf</B>(<A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> ancestor)</PRE>
<DL>
<DD>Returns true if this reference is a descendent (child, grandchild etc...) of the given reference
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ancestor</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getGlobalName()"><!-- --></A><H3>
getGlobalName</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getGlobalName</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="parseGlobalName(java.lang.String)"><!-- --></A><H3>
parseGlobalName</H3>
<PRE>
public static <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>parseGlobalName</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> globalName)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
compareTo</H3>
<PRE>
public int <B>compareTo</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Comparable.html#compareTo(T)" title="class or interface in java.lang">compareTo</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="readResolve()"><!-- --></A><H3>
readResolve</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>readResolve</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="map(com.bea.wli.config.Ref, com.bea.wli.config.Ref)"><!-- --></A><H3>
map</H3>
<PRE>
public <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>map</B>(<A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> sourceLocation,
<A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> targetLocation)
throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE>
<DL>
<DD>Maps a reference to another reference so that a portion of its prefix location is mapped to a target location. For example, if the reference is A/B/C/D/myResource, sourceLocation = A/B, and target location = X/Y/Z then the mapping result would be X/Y/Z/C/D/myResource. If this reference is equal to the source location, the method simply returns the targetLocation.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sourceLocation</CODE> - the prefix location to be changed.<DD><CODE>targetLocation</CODE> - the new value for the prefix location.
<DT><B>Returns:</B><DD>
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if this reference is not under the source location.</DL>
</DD>
</DL>
<HR>
<A NAME="makeLocationRef(java.lang.String)"><!-- --></A><H3>
makeLocationRef</H3>
<PRE>
public static <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>makeLocationRef</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> location)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>since 2.6</I>
<P>
<DD><PRE> Factory method to create parent ref for the given location. For Eg: if location is project1/folder1/folder2 it creates Ref object for folder2. </PRE>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="makeLocationDataRef(com.bea.wli.config.Ref)"><!-- --></A><H3>
makeLocationDataRef</H3>
<PRE>
public static <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>makeLocationDataRef</B>(<A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> location)</PRE>
<DL>
<DD>Creates a reference to the metadata that is kept for the given location (folder or project).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> - the folder/project for which the location data reference will be computed
<DT><B>Returns:</B><DD>reference to the resource that contains metadata about the given location</DL>
</DD>
</DL>
<HR>
<A NAME="makeProjectRef(java.lang.String)"><!-- --></A><H3>
makeProjectRef</H3>
<PRE>
public static <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>makeProjectRef</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> projectName)</PRE>
<DL>
<DD>Constructs a reference to project
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>projectName</CODE> - name of the project
<DT><B>Returns:</B><DD>a reference to the project whose name is given.</DL>
</DD>
</DL>
<HR>
<A NAME="makeFolderRef(com.bea.wli.config.Ref, java.lang.String)"><!-- --></A><H3>
makeFolderRef</H3>
<PRE>
public static <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>makeFolderRef</B>(<A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> parent,
<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> folderName)</PRE>
<DL>
<DD>Constructs a reference to a folder
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent. This can be a folder or a project.<DD><CODE>folderName</CODE> - name of the folder
<DT><B>Returns:</B><DD>a reference to a folder</DL>
</DD>
</DL>
<HR>
<A NAME="makeRef(java.lang.String, com.bea.wli.config.Ref, java.lang.String)"><!-- --></A><H3>
makeRef</H3>
<PRE>
public static <A HREF="../../../../com/bea/wli/config/Ref.html" title="class in com.bea.wli.config">Ref</A> <B>makeRef</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in ja
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -