/** * This returns the <code>Namespace</code> annotation that was * declared on the type. If no annotation has been declared on the * type this will return null as not belonging to any. * * @return this returns the namespace this type belongs to, if any */ public Namespace getNamespace() { return detail.getNamespace(); }
/** * This is used to acquire the namespace annotations that apply to * the scanned class. Namespace annotations are added only if they * have not already been extracted from a more specialized class. * When scanned all the namespace definitions are used to qualify * the XML that is produced from serializing the class. * * @param type this is the type to extract the annotations from */ private void namespace(Detail detail) throws Exception { NamespaceList scope = detail.getNamespaceList(); Namespace namespace = detail.getNamespace(); if(namespace != null) { decorator.add(namespace); } if(scope != null) { Namespace[] list = scope.value(); for(Namespace name : list) { decorator.add(name); } } }
/** * This is used to acquire the namespace annotations that apply to * the scanned class. Namespace annotations are added only if they * have not already been extracted from a more specialized class. * When scanned all the namespace definitions are used to qualify * the XML that is produced from serializing the class. * * @param type this is the type to extract the annotations from */ private void namespace(Detail detail) throws Exception { NamespaceList scope = detail.getNamespaceList(); Namespace namespace = detail.getNamespace(); if(namespace != null) { decorator.add(namespace); } if(scope != null) { Namespace[] list = scope.value(); for(Namespace name : list) { decorator.add(name); } } }
/** * This returns the <code>Namespace</code> annotation that was * declared on the type. If no annotation has been declared on the * type this will return null as not belonging to any. * * @return this returns the namespace this type belongs to, if any */ public Namespace getNamespace() { return detail.getNamespace(); }
/** * This is used to acquire the namespace annotations that apply to * the scanned class. Namespace annotations are added only if they * have not already been extracted from a more specialized class. * When scanned all the namespace definitions are used to qualify * the XML that is produced from serializing the class. * * @param type this is the type to extract the annotations from */ private void namespace(Detail detail) throws Exception { NamespaceList scope = detail.getNamespaceList(); Namespace namespace = detail.getNamespace(); if(namespace != null) { decorator.add(namespace); } if(scope != null) { Namespace[] list = scope.value(); for(Namespace name : list) { decorator.add(name); } } }
/** * This returns the <code>Namespace</code> annotation that was * declared on the type. If no annotation has been declared on the * type this will return null as not belonging to any. * * @return this returns the namespace this type belongs to, if any */ public Namespace getNamespace() { return detail.getNamespace(); }
/** * This is used to set the primary namespace for nodes that will * be decorated by the namespace decorator. If no namespace is set * using this method then this decorator will leave the namespace * reference unchanged and only add namespaces for scoping. * * @param detail the detail object that contains the namespace */ private void commit(Detail detail) { Namespace namespace = detail.getNamespace(); if(namespace != null) { decorator.set(namespace); } }
/** * This is used to set the primary namespace for nodes that will * be decorated by the namespace decorator. If no namespace is set * using this method then this decorator will leave the namespace * reference unchanged and only add namespaces for scoping. * * @param detail the detail object that contains the namespace */ private void commit(Detail detail) { Namespace namespace = detail.getNamespace(); if(namespace != null) { decorator.set(namespace); } }
/** * This is used to set the primary namespace for nodes that will * be decorated by the namespace decorator. If no namespace is set * using this method then this decorator will leave the namespace * reference unchanged and only add namespaces for scoping. * * @param detail the detail object that contains the namespace */ private void commit(Detail detail) { Namespace namespace = detail.getNamespace(); if(namespace != null) { decorator.set(namespace); } }