Class Relation
- java.lang.Object
-
- com.openindex.openestate.tool.utils.Relation
-
public class Relation extends Object
Relation.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static StringXML_ATTRIB_IDstatic StringXML_ATTRIB_PARAM_KEYstatic StringXML_ATTRIB_PARAM_VALUEstatic StringXML_ELEMENTstatic StringXML_ELEMENT_NOTESstatic StringXML_ELEMENT_PARAM
-
Constructor Summary
Constructors Constructor Description Relation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationObjectgetFirstObject()RelationObjectgetFirstObject(String type)longgetId()StringgetNotes()RelationObjectgetObject(String id, String type)List<RelationObject>getObjects()RelationObject[]getObjectsByType(String type)Map<String,String>getParams()voidread(Reader reader)voidread(Node node)voidsetId(long id)voidsetNotes(String notes)voidwrite(Writer writer)
-
-
-
Field Detail
-
XML_ELEMENT
public static final String XML_ELEMENT
- See Also:
- Constant Field Values
-
XML_ELEMENT_NOTES
public static final String XML_ELEMENT_NOTES
- See Also:
- Constant Field Values
-
XML_ELEMENT_PARAM
public static final String XML_ELEMENT_PARAM
- See Also:
- Constant Field Values
-
XML_ATTRIB_ID
public static final String XML_ATTRIB_ID
- See Also:
- Constant Field Values
-
XML_ATTRIB_PARAM_KEY
public static final String XML_ATTRIB_PARAM_KEY
- See Also:
- Constant Field Values
-
XML_ATTRIB_PARAM_VALUE
public static final String XML_ATTRIB_PARAM_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFirstObject
public RelationObject getFirstObject()
-
getFirstObject
public RelationObject getFirstObject(String type)
-
getId
public long getId()
-
getNotes
public String getNotes()
-
getObject
public RelationObject getObject(String id, String type)
-
getObjects
public List<RelationObject> getObjects()
-
getObjectsByType
public RelationObject[] getObjectsByType(String type)
-
read
public void read(Reader reader) throws ParserConfigurationException, SAXException, IOException
-
read
public void read(Node node)
-
setId
public void setId(long id)
-
setNotes
public void setNotes(String notes)
-
write
public void write(Writer writer) throws IOException
- Throws:
IOException
-
-