|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.lang.Part
net.dpml.lang.Resource
public class Resource
Resource part strategy implementation datatype.
| Field Summary |
|---|
| Fields inherited from class net.dpml.lang.Part |
|---|
PART_FOOTER, PART_HEADER, PART_SCHEMA_URN, VALUE_ENCODER, XML_HEADER |
| Constructor Summary | |
|---|---|
Resource(Logger logger,
Info info,
Classpath classpath,
String urn,
String path)
Creation of resource datatype. |
|
| Method Summary | |
|---|---|
protected void |
encodeStrategy(Writer writer,
String pad)
Encode the resource strategy to XML. |
boolean |
equals(Object other)
Test if this instance is equal to the supplied instance. |
protected Object |
getContent(Class c)
Return the part content or null if the result type is unresolvable relative to the supplied classes argument. |
String |
getPath()
Get the resource path. |
String |
getURN()
Get the resource urn. |
int |
hashCode()
Get the hashcode for this instance. |
Object |
instantiate(Object[] args)
Instantiate a value. |
| Methods inherited from class net.dpml.lang.Part |
|---|
encode, getClassLoader, getClasspath, getContent, getContent, getInfo, getLogger, load, load |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Resource(Logger logger,
Info info,
Classpath classpath,
String urn,
String path)
throws IOException
logger - the assigned logging channelinfo - the part info descriptorclasspath - the part classpath descriptorurn - the resource urnpath - the resource path
IOException - if an I/O error occurs| Method Detail |
|---|
protected Object getContent(Class c)
throws IOException
getContent in class Partc - the content class
IOException - if an IO error occurspublic String getURN()
public String getPath()
public Object instantiate(Object[] args)
throws Exception
instantiate in class Partargs - supplimentary arguments
Exception - if a deployment error occurs
protected void encodeStrategy(Writer writer,
String pad)
throws IOException
encodeStrategy in class Partwriter - the output stream writerpad - the character offset
IOException - if an I/O error occurspublic boolean equals(Object other)
equals in class Partother - the supplied instance
public int hashCode()
hashCode in class Part
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||