public class Fragment extends StandardFragment implements PSMLFragment
Constructor and Description |
---|
Fragment(String id)
Creates a new fragment.
|
Fragment(String id,
String type)
Creates a new fragment.
|
Modifier and Type | Method and Description |
---|---|
void |
setContent(String content) |
void |
toXML(org.pageseeder.xmlwriter.XMLWriter xml) |
id, toPSML, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
id, toPSML, type
public Fragment(String id)
id
- The fragment ID.public void setContent(String content)
setContent
in class StandardFragment
content
- the xml content within fragment element.public void toXML(org.pageseeder.xmlwriter.XMLWriter xml) throws IOException
toXML
in interface org.pageseeder.xmlwriter.XMLWritable
toXML
in class StandardFragment
IOException
Copyright © 2016 Allette Systems. All rights reserved.