public Feed sortEntriesByEdited(boolean new_first) { complete(); sortEntries(new EditedComparator(new_first)); return this; }
protected Element getWrapped(Element internal) { if (internal == null) return null; FOMFactory factory = (FOMFactory)getFactory(); return factory.getElementWrapper(internal); }
public Entry insertEntry() { complete(); FOMFactory fomfactory = (FOMFactory)factory; Entry entry = fomfactory.newEntry((Feed)null); insertEntry(entry); return entry; }
public Link setHrefLang(String lang) { complete(); if (lang != null) setAttributeValue(HREFLANG, lang); else removeAttribute(HREFLANG); return this; }
public Control addControl() { complete(); Control control = getControl(); if (control == null) { control = ((FOMFactory)factory).newControl(this); } return control; } }
public <T extends Element> T getExtension(QName qname) { FOMFactory factory = (FOMFactory)getFactory(); T t = (T)this.getFirstChildWithName(qname); return (T)((t != null) ? factory.getElementWrapper(t) : null); }
public Feed sortEntriesByUpdated(boolean new_first) { complete(); sortEntries(new UpdatedComparator(new_first)); return this; }
public FOMCategories() { super(CATEGORIES, new FOMDocument<Categories>(), new FOMFactory()); init(); }
public FOMService() { super(Constants.SERVICE, new FOMDocument<Service>(), new FOMFactory()); declareAtomNs(); }
public Entry setPublishedElement(DateTime dateTime) { complete(); if (dateTime != null) _setChild(PUBLISHED, (OMElement)dateTime); else _removeChildren(PUBLISHED, false); return this; }
public Person setUriElement(IRIElement uri) { complete(); if (uri != null) _setChild(URI, (OMElement)uri); else _removeChildren(URI, false); return this; }
protected Element getWrapped(Element internal) { if (internal == null) return null; FOMFactory factory = (FOMFactory)getFactory(); return factory.getElementWrapper(internal); }
protected Element getWrapped(Element internal) { if (internal == null) return null; FOMFactory factory = (FOMFactory)getFactory(); return factory.getElementWrapper(internal); }
public Categories addCategories() { complete(); return ((FOMFactory)factory).newCategories(this); }
@Override protected ParserOptions initDefaultParserOptions() { return new FOMParserOptions(getFactory()); }
protected Element getWrapped(Element internal) { if (internal == null) return null; FOMFactory factory = (FOMFactory)getFactory(); return factory.getElementWrapper(internal); }
public <T extends Element> Document<T> newDocument(T root, OMXMLParserWrapper parserWrapper) { FOMDocument<T> doc = (FOMDocument<T>)newDocument(parserWrapper); doc.setRoot(root); return doc; }
public Link setTitle(String title) { complete(); if (title != null) setAttributeValue(ATITLE, title); else removeAttribute(ATITLE); return this; }