|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.library.info.LibraryConstants
net.dpml.library.info.LibraryDecoder
Utility class used for construction of a module model from an XML source.
| Constructor Summary | |
LibraryDecoder()
|
|
| Method Summary | |
LibraryDirective |
build(File source)
Construct a library directive from XML source. |
ResourceDirective |
buildResource(URI uri)
Construct a resource directive from source. |
protected boolean |
getAliasFlag(Element element)
Return the alias attribute of the supplied element. |
protected String |
getID(Element element)
Return the id attribute of the supplied element. |
protected Properties |
getProperties(Element element)
Return properties declared within the supplied element as immediate child |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LibraryDecoder()
| Method Detail |
public LibraryDirective build(File source)
throws IOException
source - the XML source file
IOException - if an IO exception occurs
public ResourceDirective buildResource(URI uri)
throws IOException
uri - the source uri
IOException - if an IO exception occurs
protected String getID(Element element)
throws DecodingException
element - the DOM element
DecodingException - if an error occurs during element evaluationprotected boolean getAliasFlag(Element element)
element - the DOM element
protected Properties getProperties(Element element)
element - the enclosing DOM element
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||