public void parse(Class cls, boolean topDown) throws IOException { String suff = (_suffix == null) ? "" : _suffix; parse(new ClassMetaDataIterator(cls, suff, topDown), !topDown); }
public void parse(URL url) throws IOException { if (url != null) parse(new URLMetaDataIterator(url)); }
public void parse(String rsrc) throws IOException { if (rsrc != null) parse(new ResourceMetaDataIterator(rsrc, _loader)); }
@Override public ClassArgParser newClassArgParser() { ClassArgParser parser = new ClassArgParser(); parser.setMetaDataStructure("package", null, new String[]{ "entity", "embeddable", "mapped-superclass" }, "class"); return parser; }
@Override protected MetaDataFilter newMetaDataFilter() { ClassAnnotationMetaDataFilter camdf = new ClassAnnotationMetaDataFilter( new Class[] { Entity.class, Embeddable.class, MappedSuperclass.class }); camdf.setLog(log); return camdf; }
public XMLVersionParser(String rootElement) { _rootElement = rootElement; setCaching(false); setValidating(false); setParseText(false); }
/** * End a package. Parses contained text by default. */ protected void endPackage(String elem) { if (getPackageAttributeName() != null) _package = null; else _package = currentText(); }
@Override public void parse(URL url) throws IOException { _source = url; super.parse(url); }
/** * Return the source file for the given instance. By default, checks * to see if the instance implements {@link SourceTracker}. */ protected File getSourceFile(Object obj) { if (obj instanceof SourceTracker) return ((SourceTracker) obj).getSourceFile(); return null; }
/** * Whether parsed resource names are cached to avoid duplicate parsing. */ public void setCaching(boolean caching) { _caching = caching; if (!caching) clear(); }
public void parse(String rsrc) throws IOException { if (rsrc != null) parse(new ResourceMetaDataIterator(rsrc, _loader)); }
@Override public ClassArgParser newClassArgParser() { ClassArgParser parser = new ClassArgParser(); parser.setMetaDataStructure("package", null, new String[]{ "entity", "embeddable", "mapped-superclass" }, "class"); return parser; }
public void parse(Class cls, boolean topDown) throws IOException { String suff = (_suffix == null) ? "" : _suffix; parse(new ClassMetaDataIterator(cls, suff, topDown), !topDown); }
public void parse(URL url) throws IOException { if (url != null) parse(new URLMetaDataIterator(url)); }
/** * Return the source file for the given instance. By default, checks * to see if the instance implements {@link SourceTracker}. */ protected File getSourceFile(Object obj) { if (obj instanceof SourceTracker) return ((SourceTracker) obj).getSourceFile(); return null; }
public void parse(String rsrc) throws IOException { if (rsrc != null) parse(new ResourceMetaDataIterator(rsrc, _loader)); }
@Override public ClassArgParser newClassArgParser() { ClassArgParser parser = new ClassArgParser(); parser.setMetaDataStructure("package", null, new String[]{ "entity", "embeddable", "mapped-superclass" }, "class"); return parser; }
public void parse(Class cls, boolean topDown) throws IOException { String suff = (_suffix == null) ? "" : _suffix; parse(new ClassMetaDataIterator(cls, suff, topDown), !topDown); }
public void parse(Class cls, boolean topDown) throws IOException { String suff = (_suffix == null) ? "" : _suffix; parse(new ClassMetaDataIterator(cls, suff, topDown), !topDown); }