public class RelationMapping extends SAXTracker
| Modifier and Type | Field and Description |
|---|---|
protected File |
baseDirectory |
protected String |
commitMode |
protected ExpressionVirtualColumn |
curecol |
protected Entity |
curent |
protected Field |
curfield |
protected Relation |
currel |
protected Changelog |
cursync |
protected ValueIF |
curvcol |
protected Map<String,DataSourceIF> |
datasources |
protected Map<String,Prefix> |
iprefixes |
protected String |
name |
protected XMLReader |
reader |
protected Map<String,Relation> |
relations |
content, keepContentsOf, locator, openElementscharacters, isParent, keepContentsOf, setDocumentLocatorendDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected XMLReader reader
protected String name
protected String commitMode
protected File baseDirectory
protected final Map<String,DataSourceIF> datasources
protected Relation currel
protected Entity curent
protected Field curfield
protected ValueIF curvcol
protected Changelog cursync
protected ExpressionVirtualColumn curecol
public void compile()
public void close()
protected static InputSource getRelaxNGSchema() throws IOException
IOExceptionpublic File getBaseDirectory()
public void setBaseDirectory(File baseDirectory)
public String getName()
public String getCommitMode()
public Collection<DataSourceIF> getDataSources()
public DataSourceIF getDataSource(String id)
public void addDataSource(String id, DataSourceIF datasource)
public Collection<Relation> getRelations()
public void addRelation(Relation relation)
public String getQueryDeclarations()
public static RelationMapping read(File file) throws IOException
IOExceptionpublic static RelationMapping readFromClasspath(String resource) throws IOException
IOExceptionpublic static RelationMapping read(InputStream istream, File basedir) throws IOException
IOExceptionpublic void startElement(String nsuri, String lname, String qname, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class SAXTrackerSAXExceptionpublic void endElement(String nsuri, String lname, String qname) throws SAXException
endElement in interface ContentHandlerendElement in class SAXTrackerSAXExceptionprotected String getValue(Attributes attrs, String name)
protected String getValue(Attributes attrs, String name, String _default)
protected String[] getValues(Attributes attrs, String name)
protected String[] getValues(Attributes attrs, String plural, String singular)
protected void addAttribute(AttributesImpl atts, String name, String type, String value)
protected void addAttribute(AttributesImpl atts, String name, String type, String[] values)
public void write(Writer writer) throws SAXException
SAXExceptionpublic void write(Writer writer, String encoding) throws SAXException
SAXExceptionprotected void write(ContentHandler dh) throws SAXException
SAXExceptionprotected void outputEntities(Relation rel, ContentHandler dh) throws SAXException
SAXExceptionprotected void outputFields(Entity entity, ContentHandler dh) throws SAXException
SAXExceptionprotected void outputField(Field field, ContentHandler dh) throws SAXException
SAXException