Index: main/java/org/exolab/castor/builder/MemberFactory.java
===================================================================
--- main/java/org/exolab/castor/builder/MemberFactory.java (Revision 6464)
+++ main/java/org/exolab/castor/builder/MemberFactory.java (Arbeitskopie)
@@ -433,6 +433,11 @@
if (component.getValidator() != null) {
fieldInfo.setValidator(component.getValidator());
}
+
+ if (component.getVisiblity() != null) {
+ String visibility = component.getVisiblity();
+ fieldInfo.setVisibility(visibility);
+ }
return fieldInfo;
}
Index: main/java/org/exolab/castor/builder/FieldInfo.java
===================================================================
--- main/java/org/exolab/castor/builder/FieldInfo.java (Revision 6464)
+++ main/java/org/exolab/castor/builder/FieldInfo.java (Arbeitskopie)
@@ -127,6 +127,8 @@
private boolean _nillable = false;
/** The fully qualified name of the Validator (if any) to use in the generated descriptor. */
private String _validator;
+ /** Visibility of this FieldInfo */
+ private String _visibility = "private";
/**
* Creates a new FieldInfo with the given XML Schema type and the given
@@ -165,6 +167,15 @@
modifiers.setFinal(_final);
modifiers.setStatic(_static);
}
+
+ if (!(_visibility.equals("private"))) {
+ JModifiers modifiers = field.getModifiers();
+ if (_visibility.equals("protected")) {
+ modifiers.makeProtected();
+ } else if (_visibility.equals("public")) {
+ modifiers.makePublic();
+ }
+ }
//-- set init String
if (_default != null) {
@@ -847,4 +858,14 @@
return JavaNaming.toJavaClassName(_name);
}
+ /**
+ * Sets the visibility of this FieldInfo.
+ *
+ * @param visiblity the visibility of this FieldInfo
+ */
+ public void setVisibility(String visibility) {
+ _visibility = visibility;
+
+ }
+
} //-- FieldInfo
Index: main/java/org/exolab/castor/builder/binding/XMLBindingComponent.java
===================================================================
--- main/java/org/exolab/castor/builder/binding/XMLBindingComponent.java (Revision 6464)
+++ main/java/org/exolab/castor/builder/binding/XMLBindingComponent.java (Arbeitskopie)
@@ -1279,6 +1279,18 @@
}
/**
+ * Returns the visibility of the Java member to generate.
+ *
+ * @return the visibility of the Java member to generate.
+ */
+ public String getVisiblity() {
+ if (_type == MEMBER) {
+ return _member.getVisibility().toString();
+ }
+ return null;
+ }
+
+ /**
* Returns the type of this component binding. A component binding can be of
* three different types:
*
Index: main/java/org/exolab/castor/builder/binding/FieldTypeDescriptor.java
===================================================================
--- main/java/org/exolab/castor/builder/binding/FieldTypeDescriptor.java (Revision 6464)
+++ main/java/org/exolab/castor/builder/binding/FieldTypeDescriptor.java (Arbeitskopie)
@@ -1,27 +1,17 @@
/*
* This class was automatically generated with
- * Castor 0.9.4, using an
- * XML Schema.
+ * Castor 1.0.5, using an XML
+ * Schema.
* $Id$
*/
package org.exolab.castor.builder.binding;
- //---------------------------------/
- //- Imported classes and packages -/
-//---------------------------------/
-
-import org.exolab.castor.xml.*;
-import org.exolab.castor.xml.FieldValidator;
-import org.exolab.castor.xml.handlers.*;
-import org.exolab.castor.xml.util.XMLFieldDescriptorImpl;
-import org.exolab.castor.xml.validators.*;
-
/**
+ * Class FieldTypeDescriptor.
*
- *
- * @version $Revision$ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
-**/
+ * @version $Revision$ $Date$
+ */
public class FieldTypeDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
@@ -29,12 +19,29 @@
//- Class/Member Variables -/
//--------------------------/
+ /**
+ * Field elementDefinition
+ */
+ private boolean elementDefinition;
+
+ /**
+ * Field nsPrefix
+ */
private java.lang.String nsPrefix;
+ /**
+ * Field nsURI
+ */
private java.lang.String nsURI;
+ /**
+ * Field xmlName
+ */
private java.lang.String xmlName;
+ /**
+ * Field identity
+ */
private org.exolab.castor.xml.XMLFieldDescriptor identity;
@@ -42,19 +49,21 @@
//- Constructors -/
//----------------/
- public FieldTypeDescriptor() {
+ public FieldTypeDescriptor()
+ {
super();
nsURI = "http://www.castor.org/SourceGenerator/Binding";
xmlName = "fieldType";
- XMLFieldDescriptorImpl desc = null;
- XMLFieldHandler handler = null;
- FieldValidator fieldValidator = null;
+ elementDefinition = false;
+ org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
+ org.exolab.castor.mapping.FieldHandler handler = null;
+ org.exolab.castor.xml.FieldValidator fieldValidator = null;
//-- initialize attribute descriptors
//-- _name
- desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
- handler = (new XMLFieldHandler() {
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
@@ -68,30 +77,30 @@
FieldType target = (FieldType) object;
target.setName( (java.lang.String) value);
}
- catch (Exception ex) {
+ catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
return null;
}
- } );
+ };
desc.setHandler(handler);
+ desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _name
- fieldValidator = new FieldValidator();
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
- StringValidator sv = new StringValidator();
- sv.setWhiteSpace("preserve");
- fieldValidator.setValidator(sv);
+ org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
-
//-- _javaType
- desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_javaType", "java-type", NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_javaType", "java-type", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
- handler = (new XMLFieldHandler() {
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
@@ -105,36 +114,36 @@
FieldType target = (FieldType) object;
target.setJavaType( (java.lang.String) value);
}
- catch (Exception ex) {
+ catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
return null;
}
- } );
+ };
desc.setHandler(handler);
+ desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _javaType
- fieldValidator = new FieldValidator();
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
- StringValidator sv = new StringValidator();
- sv.setWhiteSpace("preserve");
- fieldValidator.setValidator(sv);
+ org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
-
//-- _wrapper
- desc = new XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_wrapper", "wrapper", NodeType.Attribute);
- handler = (new XMLFieldHandler() {
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(Boolean.TYPE, "_wrapper", "wrapper", org.exolab.castor.xml.NodeType.Attribute);
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
FieldType target = (FieldType) object;
if(!target.hasWrapper())
return null;
- return new Boolean(target.getWrapper());
+ return (target.getWrapper() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
}
public void setValue( java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
@@ -146,31 +155,31 @@
target.deleteWrapper();
return;
}
- target.setWrapper( ((Boolean)value).booleanValue());
+ target.setWrapper( ((java.lang.Boolean)value).booleanValue());
}
- catch (Exception ex) {
+ catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
return null;
}
- } );
+ };
desc.setHandler(handler);
+ desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _wrapper
- fieldValidator = new FieldValidator();
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
- BooleanValidator bv = new BooleanValidator();
- fieldValidator.setValidator(bv);
+ org.exolab.castor.xml.validators.BooleanValidator typeValidator = new org.exolab.castor.xml.validators.BooleanValidator();
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
-
//-- _handler
- desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_handler", "handler", NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_handler", "handler", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
- handler = (new XMLFieldHandler() {
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
@@ -184,29 +193,29 @@
FieldType target = (FieldType) object;
target.setHandler( (java.lang.String) value);
}
- catch (Exception ex) {
+ catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
return null;
}
- } );
+ };
desc.setHandler(handler);
+ desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _handler
- fieldValidator = new FieldValidator();
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
- StringValidator sv = new StringValidator();
- sv.setWhiteSpace("preserve");
- fieldValidator.setValidator(sv);
+ org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
-
//-- _collection
- desc = new XMLFieldDescriptorImpl(org.exolab.castor.builder.binding.types.FieldTypeCollectionType.class, "_collection", "collection", NodeType.Attribute);
- handler = (new XMLFieldHandler() {
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.exolab.castor.builder.binding.types.FieldTypeCollectionType.class, "_collection", "collection", org.exolab.castor.xml.NodeType.Attribute);
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
@@ -220,26 +229,64 @@
FieldType target = (FieldType) object;
target.setCollection( (org.exolab.castor.builder.binding.types.FieldTypeCollectionType) value);
}
- catch (Exception ex) {
+ catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
return null;
}
- } );
- desc.setHandler( new EnumFieldHandler(org.exolab.castor.builder.binding.types.FieldTypeCollectionType.class, handler));
+ };
+ handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(org.exolab.castor.builder.binding.types.FieldTypeCollectionType.class, handler);
desc.setImmutable(true);
+ desc.setHandler(handler);
+ desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _collection
- fieldValidator = new FieldValidator();
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
+ { //-- local scope
+ }
desc.setValidator(fieldValidator);
+ //-- _visibility
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.exolab.castor.builder.binding.types.FieldTypeVisibilityType.class, "_visibility", "visibility", org.exolab.castor.xml.NodeType.Attribute);
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
+ public java.lang.Object getValue( java.lang.Object object )
+ throws IllegalStateException
+ {
+ FieldType target = (FieldType) object;
+ return target.getVisibility();
+ }
+ public void setValue( java.lang.Object object, java.lang.Object value)
+ throws IllegalStateException, IllegalArgumentException
+ {
+ try {
+ FieldType target = (FieldType) object;
+ target.setVisibility( (org.exolab.castor.builder.binding.types.FieldTypeVisibilityType) value);
+ }
+ catch (java.lang.Exception ex) {
+ throw new IllegalStateException(ex.toString());
+ }
+ }
+ public java.lang.Object newInstance( java.lang.Object parent ) {
+ return null;
+ }
+ };
+ handler = new org.exolab.castor.xml.handlers.EnumFieldHandler(org.exolab.castor.builder.binding.types.FieldTypeVisibilityType.class, handler);
+ desc.setImmutable(true);
+ desc.setHandler(handler);
+ desc.setMultivalued(false);
+ addFieldDescriptor(desc);
+ //-- validation code for: _visibility
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
+ { //-- local scope
+ }
+ desc.setValidator(fieldValidator);
//-- _validator
- desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_validator", "validator", NodeType.Attribute);
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_validator", "validator", org.exolab.castor.xml.NodeType.Attribute);
desc.setImmutable(true);
- handler = (new XMLFieldHandler() {
+ handler = new org.exolab.castor.xml.XMLFieldHandler() {
public java.lang.Object getValue( java.lang.Object object )
throws IllegalStateException
{
@@ -253,26 +300,26 @@
FieldType target = (FieldType) object;
target.setValidator( (java.lang.String) value);
}
- catch (Exception ex) {
+ catch (java.lang.Exception ex) {
throw new IllegalStateException(ex.toString());
}
}
public java.lang.Object newInstance( java.lang.Object parent ) {
return null;
}
- } );
+ };
desc.setHandler(handler);
+ desc.setMultivalued(false);
addFieldDescriptor(desc);
//-- validation code for: _validator
- fieldValidator = new FieldValidator();
+ fieldValidator = new org.exolab.castor.xml.FieldValidator();
{ //-- local scope
- StringValidator sv = new StringValidator();
- sv.setWhiteSpace("preserve");
- fieldValidator.setValidator(sv);
+ org.exolab.castor.xml.validators.StringValidator typeValidator = new org.exolab.castor.xml.validators.StringValidator();
+ typeValidator.setWhiteSpace("preserve");
+ fieldValidator.setValidator(typeValidator);
}
desc.setValidator(fieldValidator);
-
//-- initialize element descriptors
} //-- org.exolab.castor.builder.binding.FieldTypeDescriptor()
@@ -283,59 +330,117 @@
//-----------/
/**
- **/
+ * Method getAccessMode
+ *
+ *
+ *
+ * @return the access mode specified for this class.
+ */
public org.exolab.castor.mapping.AccessMode getAccessMode()
{
return null;
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
/**
- **/
+ * Method getExtends
+ *
+ *
+ *
+ * @return the class descriptor of the class extended by this
+ * class.
+ */
public org.exolab.castor.mapping.ClassDescriptor getExtends()
{
return null;
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
/**
- **/
+ * Method getIdentity
+ *
+ *
+ *
+ * @return the identity field, null if this class has no
+ * identity.
+ */
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
{
return identity;
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
/**
- **/
+ * Method getJavaClass
+ *
+ *
+ *
+ * @return the Java class represented by this descriptor.
+ */
public java.lang.Class getJavaClass()
{
return org.exolab.castor.builder.binding.FieldType.class;
} //-- java.lang.Class getJavaClass()
/**
- **/
+ * Method getNameSpacePrefix
+ *
+ *
+ *
+ * @return the namespace prefix to use when marshalling as XML.
+ */
public java.lang.String getNameSpacePrefix()
{
return nsPrefix;
} //-- java.lang.String getNameSpacePrefix()
/**
- **/
+ * Method getNameSpaceURI
+ *
+ *
+ *
+ * @return the namespace URI used when marshalling and
+ * unmarshalling as XML.
+ */
public java.lang.String getNameSpaceURI()
{
return nsURI;
} //-- java.lang.String getNameSpaceURI()
/**
- **/
+ * Method getValidator
+ *
+ *
+ *
+ * @return a specific validator for the class described by this
+ * ClassDescriptor.
+ */
public org.exolab.castor.xml.TypeValidator getValidator()
{
return this;
} //-- org.exolab.castor.xml.TypeValidator getValidator()
/**
- **/
+ * Method getXMLName
+ *
+ *
+ *
+ * @return the XML Name for the Class being described.
+ */
public java.lang.String getXMLName()
{
return xmlName;
} //-- java.lang.String getXMLName()
+ /**
+ * Method isElementDefinition
+ *
+ *
+ *
+ * @return true if XML schema definition of this Class is that
+ * of a global
+ * element or element with anonymous type definition.
+ */
+ public boolean isElementDefinition()
+ {
+ return elementDefinition;
+ } //-- boolean isElementDefinition()
+
}
Index: main/java/org/exolab/castor/builder/binding/FieldType.java
===================================================================
--- main/java/org/exolab/castor/builder/binding/FieldType.java (Revision 6464)
+++ main/java/org/exolab/castor/builder/binding/FieldType.java (Arbeitskopie)
@@ -1,7 +1,7 @@
/*
* This class was automatically generated with
- * Castor 0.9.4, using an
- * XML Schema.
+ * Castor 1.0.5, using an XML
+ * Schema.
* $Id$
*/
@@ -11,22 +11,22 @@
//- Imported classes and packages -/
//---------------------------------/
-import org.exolab.castor.xml.*;
+import org.exolab.castor.xml.Marshaller;
+import org.exolab.castor.xml.Unmarshaller;
/**
+ * This type represents the binding for class member. It allows the
+ * definition
+ * of its name and java type as well as an implementation of
+ * FieldHandler
+ * to help the Marshalling framework in handling that member.
+ * Defining a validator is also
+ * possible. The names given for the validator and the
+ * fieldHandler must be fully qualified
+ *
*
- * This type represents the binding for class
- * member. It allows the definition
- * of its name and java type as well as an
- * implementation of FieldHandler
- * to help the Marshalling framework in handling
- * that member. Defining a validator is also
- * possible. The names given for the validator and
- * the fieldHandler must be fully qualified
- *
- *
- * @version $Revision$ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
-**/
+ * @version $Revision$ $Date$
+ */
public class FieldType implements java.io.Serializable {
@@ -34,21 +34,44 @@
//- Class/Member Variables -/
//--------------------------/
+ /**
+ * Field _name
+ */
private java.lang.String _name;
+ /**
+ * Field _javaType
+ */
private java.lang.String _javaType;
+ /**
+ * Field _wrapper
+ */
private boolean _wrapper;
/**
* keeps track of state for field: _wrapper
- **/
+ */
private boolean _has_wrapper;
+ /**
+ * Field _handler
+ */
private java.lang.String _handler;
+ /**
+ * Field _collection
+ */
private org.exolab.castor.builder.binding.types.FieldTypeCollectionType _collection;
+ /**
+ * Field _visibility
+ */
+ private org.exolab.castor.builder.binding.types.FieldTypeVisibilityType _visibility;
+
+ /**
+ * Field _validator
+ */
private java.lang.String _validator;
@@ -56,7 +79,8 @@
//- Constructors -/
//----------------/
- public FieldType() {
+ public FieldType()
+ {
super();
} //-- org.exolab.castor.builder.binding.FieldType()
@@ -66,7 +90,7 @@
//-----------/
/**
- **/
+ */
public void deleteWrapper()
{
this._has_wrapper= false;
@@ -75,8 +99,8 @@
/**
* Returns the value of field 'collection'.
*
- * @return the value of field 'collection'.
- **/
+ * @return the value of field 'Collection'.
+ */
public org.exolab.castor.builder.binding.types.FieldTypeCollectionType getCollection()
{
return this._collection;
@@ -85,8 +109,8 @@
/**
* Returns the value of field 'handler'.
*
- * @return the value of field 'handler'.
- **/
+ * @return the value of field 'Handler'.
+ */
public java.lang.String getHandler()
{
return this._handler;
@@ -95,8 +119,8 @@
/**
* Returns the value of field 'javaType'.
*
- * @return the value of field 'javaType'.
- **/
+ * @return the value of field 'JavaType'.
+ */
public java.lang.String getJavaType()
{
return this._javaType;
@@ -105,8 +129,8 @@
/**
* Returns the value of field 'name'.
*
- * @return the value of field 'name'.
- **/
+ * @return the value of field 'Name'.
+ */
public java.lang.String getName()
{
return this._name;
@@ -115,32 +139,52 @@
/**
* Returns the value of field 'validator'.
*
- * @return the value of field 'validator'.
- **/
+ * @return the value of field 'Validator'.
+ */
public java.lang.String getValidator()
{
return this._validator;
} //-- java.lang.String getValidator()
/**
+ * Returns the value of field 'visibility'.
+ *
+ * @return the value of field 'Visibility'.
+ */
+ public org.exolab.castor.builder.binding.types.FieldTypeVisibilityType getVisibility()
+ {
+ return this._visibility;
+ } //-- org.exolab.castor.builder.binding.types.FieldTypeVisibilityType getVisibility()
+
+ /**
* Returns the value of field 'wrapper'.
*
- * @return the value of field 'wrapper'.
- **/
+ * @return the value of field 'Wrapper'.
+ */
public boolean getWrapper()
{
return this._wrapper;
} //-- boolean getWrapper()
/**
- **/
+ * Method hasWrapper
+ *
+ *
+ *
+ * @return true if at least one Wrapper has been added
+ */
public boolean hasWrapper()
{
return this._has_wrapper;
} //-- boolean hasWrapper()
/**
- **/
+ * Method isValid
+ *
+ *
+ *
+ * @return true if this object is valid according to the schema
+ */
public boolean isValid()
{
try {
@@ -153,10 +197,24 @@
} //-- boolean isValid()
/**
+ * Returns the value of field 'wrapper'.
*
+ * @return the value of field 'Wrapper'.
+ */
+ public boolean isWrapper()
+ {
+ return this._wrapper;
+ } //-- boolean isWrapper()
+
+ /**
*
+ *
* @param out
- **/
+ * @throws org.exolab.castor.xml.MarshalException if object is
+ * null or if any SAXException is thrown during marshaling
+ * @throws org.exolab.castor.xml.ValidationException if this
+ * object is an invalid instance according to the schema
+ */
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
@@ -168,7 +226,13 @@
*
*
* @param handler
- **/
+ * @throws java.io.IOException if an IOException occurs during
+ * marshaling
+ * @throws org.exolab.castor.xml.ValidationException if this
+ * object is an invalid instance according to the schema
+ * @throws org.exolab.castor.xml.MarshalException if object is
+ * null or if any SAXException is thrown during marshaling
+ */
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
@@ -180,7 +244,7 @@
* Sets the value of field 'collection'.
*
* @param collection the value of field 'collection'.
- **/
+ */
public void setCollection(org.exolab.castor.builder.binding.types.FieldTypeCollectionType collection)
{
this._collection = collection;
@@ -190,7 +254,7 @@
* Sets the value of field 'handler'.
*
* @param handler the value of field 'handler'.
- **/
+ */
public void setHandler(java.lang.String handler)
{
this._handler = handler;
@@ -200,7 +264,7 @@
* Sets the value of field 'javaType'.
*
* @param javaType the value of field 'javaType'.
- **/
+ */
public void setJavaType(java.lang.String javaType)
{
this._javaType = javaType;
@@ -210,7 +274,7 @@
* Sets the value of field 'name'.
*
* @param name the value of field 'name'.
- **/
+ */
public void setName(java.lang.String name)
{
this._name = name;
@@ -220,17 +284,27 @@
* Sets the value of field 'validator'.
*
* @param validator the value of field 'validator'.
- **/
+ */
public void setValidator(java.lang.String validator)
{
this._validator = validator;
} //-- void setValidator(java.lang.String)
/**
+ * Sets the value of field 'visibility'.
+ *
+ * @param visibility the value of field 'visibility'.
+ */
+ public void setVisibility(org.exolab.castor.builder.binding.types.FieldTypeVisibilityType visibility)
+ {
+ this._visibility = visibility;
+ } //-- void setVisibility(org.exolab.castor.builder.binding.types.FieldTypeVisibilityType)
+
+ /**
* Sets the value of field 'wrapper'.
*
* @param wrapper the value of field 'wrapper'.
- **/
+ */
public void setWrapper(boolean wrapper)
{
this._wrapper = wrapper;
@@ -238,18 +312,30 @@
} //-- void setWrapper(boolean)
/**
+ * Method unmarshal
*
*
+ *
* @param reader
- **/
- public static org.exolab.castor.builder.binding.FieldType unmarshalFieldType(java.io.Reader reader)
+ * @throws org.exolab.castor.xml.MarshalException if object is
+ * null or if any SAXException is thrown during marshaling
+ * @throws org.exolab.castor.xml.ValidationException if this
+ * object is an invalid instance according to the schema
+ * @return the unmarshaled
+ * org.exolab.castor.builder.binding.FieldType
+ */
+ public static org.exolab.castor.builder.binding.FieldType unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
return (org.exolab.castor.builder.binding.FieldType) Unmarshaller.unmarshal(org.exolab.castor.builder.binding.FieldType.class, reader);
- } //-- org.exolab.castor.builder.binding.FieldType unmarshalFieldType(java.io.Reader)
+ } //-- org.exolab.castor.builder.binding.FieldType unmarshal(java.io.Reader)
/**
- **/
+ *
+ *
+ * @throws org.exolab.castor.xml.ValidationException if this
+ * object is an invalid instance according to the schema
+ */
public void validate()
throws org.exolab.castor.xml.ValidationException
{
Index: main/resources/org/exolab/castor/builder/binding/binding.xsd
===================================================================
--- main/resources/org/exolab/castor/builder/binding/binding.xsd (Revision 6464)
+++ main/resources/org/exolab/castor/builder/binding/binding.xsd (Arbeitskopie)
@@ -188,6 +188,15 @@
+
+
+
+
+
+
+
+
+
Index: build.xml
===================================================================
--- build.xml (Revision 6464)
+++ build.xml (Arbeitskopie)
@@ -812,6 +812,26 @@
+
+
+
+
+
+
+
+
+
+
+