|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| SystemInterceptorDescriptor.java | - | 75.9% | 50% | 68.3% |
|
||||||||||||||
| 1 |
/**
|
|
| 2 |
* JFoxSOAF, Service-Oriented Application Framework
|
|
| 3 |
*
|
|
| 4 |
* Copyright (C) www.huihoo.org
|
|
| 5 |
*
|
|
| 6 |
* Distributable under GNU LGPL For more information, please visit:
|
|
| 7 |
* http://www.huihoo.org/jfox/jfoxsoaf
|
|
| 8 |
*/
|
|
| 9 |
|
|
| 10 |
package org.huihoo.jfox.soaf.schema.config;
|
|
| 11 |
|
|
| 12 |
/**
|
|
| 13 |
* Class SystemInterceptorDescriptor.
|
|
| 14 |
*
|
|
| 15 |
* @version $Revision: 1.1 $ $Date: 2004/10/13 10:52:28 $
|
|
| 16 |
*/
|
|
| 17 |
|
|
| 18 |
public class SystemInterceptorDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
|
| 19 |
|
|
| 20 |
/**
|
|
| 21 |
* Field nsPrefix
|
|
| 22 |
*/
|
|
| 23 |
private java.lang.String nsPrefix;
|
|
| 24 |
|
|
| 25 |
/**
|
|
| 26 |
* Field nsURI
|
|
| 27 |
*/
|
|
| 28 |
private java.lang.String nsURI;
|
|
| 29 |
|
|
| 30 |
/**
|
|
| 31 |
* Field xmlName
|
|
| 32 |
*/
|
|
| 33 |
private java.lang.String xmlName;
|
|
| 34 |
|
|
| 35 |
/**
|
|
| 36 |
* Field identity
|
|
| 37 |
*/
|
|
| 38 |
private org.exolab.castor.xml.XMLFieldDescriptor identity;
|
|
| 39 |
|
|
| 40 | 4 |
public SystemInterceptorDescriptor() {
|
| 41 | 4 |
super();
|
| 42 | 4 |
xmlName = "system-interceptor";
|
| 43 |
|
|
| 44 |
//-- set grouping compositor
|
|
| 45 | 4 |
setCompositorAsSequence(); |
| 46 | 4 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
| 47 | 4 |
org.exolab.castor.xml.XMLFieldHandler handler = null;
|
| 48 | 4 |
org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
| 49 |
//-- initialize attribute descriptors
|
|
| 50 |
|
|
| 51 |
//-- initialize element descriptors
|
|
| 52 |
|
|
| 53 |
//-- _interceptorList
|
|
| 54 | 4 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.huihoo.jfox.soaf.schema.config.Interceptor.class, "_interceptorList", "interceptor", org.exolab.castor.xml.NodeType.Element); |
| 55 | 4 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
| 56 | 4 |
public java.lang.Object getValue( java.lang.Object object )
|
| 57 |
throws IllegalStateException
|
|
| 58 |
{
|
|
| 59 | 4 |
SystemInterceptor target = (SystemInterceptor) object; |
| 60 | 4 |
return target.getInterceptor();
|
| 61 |
} |
|
| 62 | 8 |
public void setValue( java.lang.Object object, java.lang.Object value) |
| 63 |
throws IllegalStateException, IllegalArgumentException
|
|
| 64 |
{
|
|
| 65 | 8 |
try {
|
| 66 | 8 |
SystemInterceptor target = (SystemInterceptor) object; |
| 67 | 8 |
target.addInterceptor( (org.huihoo.jfox.soaf.schema.config.Interceptor) value); |
| 68 |
} |
|
| 69 |
catch (java.lang.Exception ex) {
|
|
| 70 | 0 |
throw new IllegalStateException(ex.toString()); |
| 71 |
} |
|
| 72 |
} |
|
| 73 | 8 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
| 74 | 8 |
return new org.huihoo.jfox.soaf.schema.config.Interceptor(); |
| 75 |
} |
|
| 76 |
} ); |
|
| 77 | 4 |
desc.setHandler(handler); |
| 78 | 4 |
desc.setMultivalued(true);
|
| 79 | 4 |
addFieldDescriptor(desc); |
| 80 |
|
|
| 81 |
//-- validation code for: _interceptorList
|
|
| 82 | 4 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
| 83 | 4 |
fieldValidator.setMinOccurs(0); |
| 84 |
{ //-- local scope
|
|
| 85 |
} |
|
| 86 | 4 |
desc.setValidator(fieldValidator); |
| 87 |
} |
|
| 88 |
|
|
| 89 |
/**
|
|
| 90 |
* Method getAccessMode
|
|
| 91 |
*/
|
|
| 92 | 0 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
| 93 |
{
|
|
| 94 | 0 |
return null; |
| 95 |
} |
|
| 96 |
|
|
| 97 |
/**
|
|
| 98 |
* Method getExtends
|
|
| 99 |
*/
|
|
| 100 | 0 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
| 101 |
{
|
|
| 102 | 0 |
return null; |
| 103 |
} |
|
| 104 |
|
|
| 105 |
/**
|
|
| 106 |
* Method getIdentity
|
|
| 107 |
*/
|
|
| 108 | 0 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
| 109 |
{
|
|
| 110 | 0 |
return identity;
|
| 111 |
} |
|
| 112 |
|
|
| 113 |
/**
|
|
| 114 |
* Method getJavaClass
|
|
| 115 |
*/
|
|
| 116 | 8 |
public java.lang.Class getJavaClass()
|
| 117 |
{
|
|
| 118 | 8 |
return org.huihoo.jfox.soaf.schema.config.SystemInterceptor.class; |
| 119 |
} |
|
| 120 |
|
|
| 121 |
/**
|
|
| 122 |
* Method getNameSpacePrefix
|
|
| 123 |
*/
|
|
| 124 | 0 |
public java.lang.String getNameSpacePrefix()
|
| 125 |
{
|
|
| 126 | 0 |
return nsPrefix;
|
| 127 |
} |
|
| 128 |
|
|
| 129 |
/**
|
|
| 130 |
* Method getNameSpaceURI
|
|
| 131 |
*/
|
|
| 132 | 0 |
public java.lang.String getNameSpaceURI()
|
| 133 |
{
|
|
| 134 | 0 |
return nsURI;
|
| 135 |
} |
|
| 136 |
|
|
| 137 |
/**
|
|
| 138 |
* Method getValidator
|
|
| 139 |
*/
|
|
| 140 | 4 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
| 141 |
{
|
|
| 142 | 4 |
return this; |
| 143 |
} |
|
| 144 |
|
|
| 145 |
/**
|
|
| 146 |
* Method getXMLName
|
|
| 147 |
*/
|
|
| 148 | 0 |
public java.lang.String getXMLName()
|
| 149 |
{
|
|
| 150 | 0 |
return xmlName;
|
| 151 |
} |
|
| 152 |
|
|
| 153 |
} |
|
| 154 |
|
|
||||||||||