net.aerith.misao.xml.relaxer
Class RContext
java.lang.Object
|
+--net.aerith.misao.xml.relaxer.RContext
- Direct Known Subclasses:
- RContext
- public class RContext
- extends java.lang.Object
Field Summary |
private java.net.URL |
baseURL
|
private java.util.Map |
idMap
|
Constructor Summary |
RContext()
Creates a RContext by the File file . |
RContext(java.io.File file)
Creates a RContext by the File file . |
RContext(java.lang.String uri)
Creates a RContext by the File file . |
RContext(java.net.URL url)
Creates a RContext by the URL url . |
Method Summary |
java.net.URL |
getBaseURL()
Gets the java.net.URL property baseURL. |
IRNode |
getIRNode(java.lang.String id)
gets IRNode by ID. |
void |
setBaseURL(java.net.URL baseURL)
Sets the java.net.URL property baseURL. |
void |
setIRNode(java.lang.String id,
IRNode node)
sets IRNode with ID. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
baseURL
private java.net.URL baseURL
idMap
private java.util.Map idMap
RContext
public RContext()
- Creates a
RContext
by the File file
.
RContext
public RContext(java.io.File file)
throws java.net.MalformedURLException
- Creates a
RContext
by the File file
.
- Parameters:
file
- - Throws:
- java.net.MalformedURLException -
RContext
public RContext(java.net.URL url)
- Creates a
RContext
by the URL url
.
- Parameters:
url
-
RContext
public RContext(java.lang.String uri)
throws java.net.MalformedURLException
- Creates a
RContext
by the File file
.
- Parameters:
uri
- - Throws:
- java.net.MalformedURLException -
getBaseURL
public final java.net.URL getBaseURL()
- Gets the java.net.URL property baseURL.
- Returns:
- java.net.URL
setBaseURL
public final void setBaseURL(java.net.URL baseURL)
- Sets the java.net.URL property baseURL.
- Parameters:
baseURL
-
getIRNode
public IRNode getIRNode(java.lang.String id)
- gets IRNode by ID.
- Parameters:
id
- - Returns:
- IRNode
setIRNode
public void setIRNode(java.lang.String id,
IRNode node)
- sets IRNode with ID.
- Parameters:
id
- node
-