protected void parseWorkspaceElement ( final Element element ) throws ProponoException { final Element titleElem = element . getChild ( "title" , AtomService . ATOM_FORMAT ) ; setTitle ( titleElem . getText ( ) ) ; if ( titleElem . getAttribute ( "type" , AtomService . ATOM_FORMAT ) != null ) { setTitleType ( titleElem . getAttribute ( "type" , AtomService . ATOM_FORMAT ) . getValue ( ) ) ; } final List < Element > collections = element . getChildren ( "collection" , AtomService . ATOM_PROTOCOL ) ; for ( final Element e : collections ) { addCollection ( new Collection ( e ) ) ; } }
Deserialize a Atom workspace XML element into an object