|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.lang.Part
Part datastructure.
| Field Summary | |
protected static String |
PART_FOOTER
Part footer. |
protected static String |
PART_HEADER
Part header. |
protected static String |
PART_SCHEMA_URN
Part schema URN. |
protected static ValueEncoder |
VALUE_ENCODER
A value encoder. |
protected static String |
XML_HEADER
Default XML header. |
| Constructor Summary | |
Part(Logger logger,
Info info,
Classpath classpath)
Creation of a new part datastructure. |
|
Part(Logger logger,
Info info,
Classpath classpath,
String label)
Creation of a new part datastructure. |
|
| Method Summary | |
void |
encode(OutputStream output)
Externalize the part to XML. |
protected abstract void |
encodeStrategy(Writer writer,
String pad)
Encode this part strategy to XML. |
boolean |
equals(Object other)
Test is this part is equiovalent to the supplied part. |
ClassLoader |
getClassLoader()
Get the implementation classloader. |
Classpath |
getClasspath()
Get the part classpath definition. |
Object |
getContent()
Return the default part content. |
protected Object |
getContent(Class c)
Return the part content or null if the result type is unresolvable relative to the supplied classes argument. |
Object |
getContent(Class[] classes)
Return the part content or null if the result type is unresolvable relative to the supplied classes argument. |
Info |
getInfo()
Get the part info descriptor. |
protected Logger |
getLogger()
Get the assigned logging channel. |
int |
hashCode()
Get the part hashcode. |
abstract Object |
instantiate(Object[] args)
Instantiate a value. |
static Part |
load(URI uri)
Load a part from an external XML source with part caching. |
static Part |
load(URI uri,
boolean cache)
Load a part from an external XML source. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final ValueEncoder VALUE_ENCODER
protected static final String XML_HEADER
protected static final String PART_SCHEMA_URN
protected static final String PART_HEADER
protected static final String PART_FOOTER
| Constructor Detail |
public Part(Logger logger,
Info info,
Classpath classpath)
throws IOException
logger - the logging channelinfo - the info descriptorclasspath - the part classpath definition
IOException - if an I/O error occurs
public Part(Logger logger,
Info info,
Classpath classpath,
String label)
throws IOException
logger - the logging channelinfo - the info descriptorclasspath - the part classpath definitionlabel - debug label
IOException - if an I/O error occurs| Method Detail |
public static Part load(URI uri)
throws IOException
uri - the external part source
IOException - of an I/O error occurs
public static Part load(URI uri,
boolean cache)
throws IOException
uri - the external part sourcecache - the cache policy
IOException - of an I/O error occurs
public Object getContent()
throws IOException
IOException - if an IO error occurs
public Object getContent(Class[] classes)
throws IOException
classes - the content type selection classes
IOException - if an IO error occurs
protected Object getContent(Class c)
throws IOException
c - the content type class
IOException - if an IO error occurspublic Info getInfo()
public Classpath getClasspath()
public abstract Object instantiate(Object[] args)
throws Exception
args - supplimentary arguments
Exception - if a deployment error occurs
public void encode(OutputStream output)
throws IOException
output - the output stream
IOException - if an I/O error occurspublic boolean equals(Object other)
other - the other object
public int hashCode()
protected abstract void encodeStrategy(Writer writer,
String pad)
throws IOException
writer - the output stream writerpad - the character offset
IOException - if an I/O error occurs during part externalizationpublic ClassLoader getClassLoader()
protected Logger getLogger()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||