public class Record extends Object implements DOMSerializable, XMLSerializable
Modifier and Type | Class and Description |
---|---|
static class |
Record.Layer |
Constructor and Description |
---|
Record(String type,
String parentId) |
Record(String type,
String parentId,
Record.Layer layer) |
Modifier and Type | Method and Description |
---|---|
Record.Layer |
addLayer(Record.Layer layer) |
Record.Layer |
addLayer(String name) |
static Record |
fromDOM(Element root,
String type) |
Date |
getLastModified() |
Record.Layer |
getLayer(String layerName) |
List<Record.Layer> |
getLayers() |
String |
getParentId() |
String |
getType() |
boolean |
hideLayer(String layerName) |
void |
setLastModified(Date lastModified) |
Record |
setLayer(Record.Layer layer) |
boolean |
showLayer(String layerName) |
Element |
toDOM(Element parent)
Serializes object to a DOM Tree and returns the root element for that Tree.
|
void |
toXML(XMLWriter xw) |
public Record(String type, String parentId, Record.Layer layer)
public String getType()
public String getParentId()
public void setLastModified(Date lastModified)
public Date getLastModified()
public boolean hideLayer(String layerName)
public boolean showLayer(String layerName)
public Record.Layer getLayer(String layerName)
public Record setLayer(Record.Layer layer)
public Record.Layer addLayer(String name)
public Record.Layer addLayer(Record.Layer layer)
public List<Record.Layer> getLayers()
public void toXML(XMLWriter xw)
toXML
in interface XMLSerializable
public Element toDOM(Element parent)
DOMSerializable
toDOM
in interface DOMSerializable
public static Record fromDOM(Element root, String type) throws MalformedInputException
MalformedInputException
Copyright © 2008-2015 Index Data. All Rights Reserved.