/** * This is used to acquire the type that this scanner scans for * annotations to be used in a schema. Exposing the class that * this represents allows the schema it creates to be known. * * @return this is the type that this creator will represent */ public Class getType() { return detail.getType(); }
/** * This returns the type represented by this detail. The type is * the class that has been scanned for annotations, methods and * fields. All super types of this are represented in the detail. * * @return the type that this detail object represents */ public Class getType() { return detail.getType(); }
/** * This returns the type represented by this detail. The type is * the class that has been scanned for annotations, methods and * fields. All super types of this are represented in the detail. * * @return the type that this detail object represents */ public Class getType() { return detail.getType(); }
/** * This is used to acquire the type that this scanner scans for * annotations to be used in a schema. Exposing the class that * this represents allows the schema it creates to be known. * * @return this is the type that this creator will represent */ public Class getType() { return detail.getType(); }
/** * This is used to acquire the type that this scanner scans for * annotations to be used in a schema. Exposing the class that * this represents allows the schema it creates to be known. * * @return this is the type that this creator will represent */ public Class getType() { return detail.getType(); }
/** * This is used to acquire the type that this scanner scans for * annotations to be used in a schema. Exposing the class that * this represents allows the schema it creates to be known. * * @return this is the type that this creator will represent */ public Class getType() { return detail.getType(); }
/** * This returns the type represented by this detail. The type is * the class that has been scanned for annotations, methods and * fields. All super types of this are represented in the detail. * * @return the type that this detail object represents */ public Class getType() { return detail.getType(); }
/** * This is used to acquire the type that this scanner scans for * annotations to be used in a schema. Exposing the class that * this represents allows the schema it creates to be known. * * @return this is the type that this creator will represent */ public Class getType() { return detail.getType(); }
/** * This is used to acquire the type that this scanner scans for * annotations to be used in a schema. Exposing the class that * this represents allows the schema it creates to be known. * * @return this is the type that this creator will represent */ public Class getType() { return detail.getType(); }
/** * This is used to acquire the optional order annotation to provide * order to the elements and attributes for the generated XML. This * acts as an override to the order provided by the declaration of * the types within the object. * * @param detail this contains the details for the class scanned */ private void order(Detail detail) throws Exception { Class type = detail.getType(); builder.assemble(type); }
/** * This is used to acquire the optional order annotation to provide * order to the elements and attributes for the generated XML. This * acts as an override to the order provided by the declaration of * the types within the object. * * @param detail this contains the details for the class scanned */ private void order(Detail detail) throws Exception { Class type = detail.getType(); builder.assemble(type); }
/** * This is used to acquire the optional order annotation to provide * order to the elements and attributes for the generated XML. This * acts as an override to the order provided by the declaration of * the types within the object. * * @param detail this contains the details for the class scanned */ private void order(Detail detail) throws Exception { Class type = detail.getType(); builder.assemble(type); }
/** * Once the scanner has completed extracting the annotations and * validating the resulting structure this is called to complete * the process. This will build a <code>Structure</code> object and * clean up any data structures no longer required by the scanner. * * @param detail this contains the details for the class scanned */ private void commit(Detail detail) throws Exception { Class type = detail.getType(); if(structure == null) { structure = builder.build(type); } builder = null; }
/** * Once the scanner has completed extracting the annotations and * validating the resulting structure this is called to complete * the process. This will build a <code>Structure</code> object and * clean up any data structures no longer required by the scanner. * * @param detail this contains the details for the class scanned */ private void commit(Detail detail) throws Exception { Class type = detail.getType(); if(structure == null) { structure = builder.build(type); } builder = null; }
/** * This is used to validate the configuration of the scanned class. * If a <code>Text</code> annotation has been used with elements * then validation will fail and an exception will be thrown. * * @param detail this contains the details for the class scanned */ private void validate(Detail detail) throws Exception { Class type = detail.getType(); builder.commit(type); builder.validate(type); }
/** * This is used to validate the configuration of the scanned class. * If a <code>Text</code> annotation has been used with elements * then validation will fail and an exception will be thrown. * * @param detail this contains the details for the class scanned */ private void validate(Detail detail) throws Exception { Class type = detail.getType(); builder.commit(type); builder.validate(type); }
/** * Constructor for the <code>ExpressionBuilder</code>. This is * used to create a builder to cache frequently requested XPath * expressions. Such caching improves the overall performance. * * @param detail the details for the the class with expressions * @param support this contains various support functions */ public ExpressionBuilder(Detail detail, Support support) { this.cache = new LimitedCache<Expression>(); this.format = support.getFormat(); this.type = detail.getType(); }
/** * Constructor for the <code>ExpressionBuilder</code>. This is * used to create a builder to cache frequently requested XPath * expressions. Such caching improves the overall performance. * * @param detail the details for the the class with expressions * @param support this contains various support functions */ public ExpressionBuilder(Detail detail, Support support) { this.cache = new LimitedCache<Expression>(); this.format = support.getFormat(); this.type = detail.getType(); }
/** * This is used to validate the configuration of the scanned class. * If a <code>Text</code> annotation has been used with elements * then validation will fail and an exception will be thrown. * * @param detail this contains the details for the class scanned */ private void validate(Detail detail) throws Exception { Class type = detail.getType(); builder.commit(type); builder.validate(type); }
/** * Constructor for the <code>ExpressionBuilder</code>. This is * used to create a builder to cache frequently requested XPath * expressions. Such caching improves the overall performance. * * @param detail the details for the the class with expressions * @param support this contains various support functions */ public ExpressionBuilder(Detail detail, Support support) { this.cache = new LimitedCache<Expression>(); this.format = support.getFormat(); this.type = detail.getType(); }