package jalview.schemabinding.version2.descriptors;
+import jalview.schemabinding.version2.CompoundMatcher;
+
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import jalview.schemabinding.version2.FeatureMatcherSet;
+import jalview.schemabinding.version2.MatchCondition;
/**
* Class FeatureMatcherSetDescriptor.
// -- _matchCondition
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
- jalview.schemabinding.version2.MatchCondition.class,
- "_matchCondition", "matchCondition",
+ MatchCondition.class, "_matchCondition", "matchCondition",
org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler()
{
+ @Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
return target.getMatchCondition();
}
+ @Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
FeatureMatcherSet target = (FeatureMatcherSet) object;
- target.setMatchCondition(
- (jalview.schemabinding.version2.MatchCondition) value);
+ target.setMatchCondition((MatchCondition) value);
} catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());
}
}
+ @Override
public java.lang.Object newInstance(java.lang.Object parent)
{
- return new jalview.schemabinding.version2.MatchCondition();
+ return new MatchCondition();
}
};
desc.setHandler(handler);
desc.setValidator(fieldValidator);
// -- _compoundMatcher
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
- jalview.schemabinding.version2.CompoundMatcher.class,
- "_compoundMatcher", "compoundMatcher",
+ CompoundMatcher.class, "_compoundMatcher", "compoundMatcher",
org.exolab.castor.xml.NodeType.Element);
handler = new org.exolab.castor.xml.XMLFieldHandler()
{
+ @Override
public java.lang.Object getValue(java.lang.Object object)
throws IllegalStateException
{
return target.getCompoundMatcher();
}
+ @Override
public void setValue(java.lang.Object object, java.lang.Object value)
throws IllegalStateException, IllegalArgumentException
{
try
{
FeatureMatcherSet target = (FeatureMatcherSet) object;
- target.setCompoundMatcher(
- (jalview.schemabinding.version2.CompoundMatcher) value);
+ target.setCompoundMatcher((CompoundMatcher) value);
} catch (java.lang.Exception ex)
{
throw new IllegalStateException(ex.toString());
}
}
+ @Override
public java.lang.Object newInstance(java.lang.Object parent)
{
- return new jalview.schemabinding.version2.CompoundMatcher();
+ return new CompoundMatcher();
}
};
desc.setHandler(handler);
*
* @return the access mode specified for this class.
*/
+ @Override
public org.exolab.castor.mapping.AccessMode getAccessMode()
{
return null;
*
* @return the identity field, null if this class has no identity.
*/
+ @Override
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
{
return super.getIdentity();
*
* @return the Java class represented by this descriptor.
*/
+ @Override
public java.lang.Class getJavaClass()
{
return jalview.schemabinding.version2.FeatureMatcherSet.class;
*
* @return the namespace prefix to use when marshaling as XML.
*/
+ @Override
public java.lang.String getNameSpacePrefix()
{
return _nsPrefix;
*
* @return the namespace URI used when marshaling and unmarshaling as XML.
*/
+ @Override
public java.lang.String getNameSpaceURI()
{
return _nsURI;
* @return a specific validator for the class described by this
* ClassDescriptor.
*/
+ @Override
public org.exolab.castor.xml.TypeValidator getValidator()
{
return this;
*
* @return the XML Name for the Class being described.
*/
+ @Override
public java.lang.String getXMLName()
{
return _xmlName;
* @return true if XML schema definition of this Class is that of a global
* element or element with anonymous type definition.
*/
+ @Override
public boolean isElementDefinition()
{
return _elementDefinition;