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 String
XML_ATTRIB_ID
static String
XML_ATTRIB_PARAM_KEY
static String
XML_ATTRIB_PARAM_VALUE
static String
XML_ELEMENT
static String
XML_ELEMENT_NOTES
static String
XML_ELEMENT_PARAM
-
Constructor Summary
Constructors Constructor Description Relation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationObject
getFirstObject()
RelationObject
getFirstObject(String type)
long
getId()
String
getNotes()
RelationObject
getObject(String id, String type)
List<RelationObject>
getObjects()
RelationObject[]
getObjectsByType(String type)
Map<String,String>
getParams()
void
read(Reader reader)
void
read(Node node)
void
setId(long id)
void
setNotes(String notes)
void
write(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
-
-