org.apache.xerces.impl.validation.datatypes.eTypes.xml
Class XMLRequired

java.lang.Object
  |
  +--org.apache.xerces.impl.validation.datatypes.eTypes.xml.XMLRequired

public class XMLRequired
extends java.lang.Object
implements Property

valid if each parent XModelIF has an object of this type

Version:
$Id: XMLRequired.java,v 1.1.2.1 2000/10/28 00:04:54 jeffreyr Exp $
Author:
Leonard C. Berman, Jeffrey Rodriguez

Inner classes inherited from class org.apache.xerces.impl.validation.datatypes.eTypes.Interfaces.Property
Property.ValidationSummary
 
Field Summary
 boolean valid
           
 
Fields inherited from interface org.apache.xerces.impl.validation.datatypes.eTypes.Interfaces.Property
accumulate, classNumberSubProperties, constraint, eval, instance, merge
 
Constructor Summary
XMLRequired()
           
 
Method Summary
 boolean accumulate(java.lang.Object dt)
          accumulate method comment.
 java.lang.Object clone()
           
 java.lang.String getName()
          getName method comment.
 boolean isValid()
           
 void merge()
          merge method comment.
 void merge(Property scratchProp)
          XML property merge is not called
 void setValid(boolean newValid)
           
 Property twin()
          Returns "deep-clone" of this so that changes to this do not effect returnee.
 boolean validate(java.lang.Object dt)
          If getFixed(), returns true if all non-null instances associated with xm are equal, If getRequired() returns true if all instances associated with xm are non-null
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valid

public boolean valid
Constructor Detail

XMLRequired

public XMLRequired()
Method Detail

accumulate

public boolean accumulate(java.lang.Object dt)
accumulate method comment.
Specified by:
accumulate in interface Property

clone

public java.lang.Object clone()
Specified by:
clone in interface Property
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName()
getName method comment.
Specified by:
getName in interface Property

isValid

public final boolean isValid()
Returns:
boolean

merge

public void merge()
merge method comment.
Specified by:
merge in interface Property

merge

public void merge(Property scratchProp)
XML property merge is not called

setValid

public final void setValid(boolean newValid)
Parameters:
newValid - boolean

twin

public Property twin()
Description copied from interface: Property
Returns "deep-clone" of this so that changes to this do not effect returnee. Override in any class which has instance fields or declares and increases classNumberSubProperties.
Specified by:
twin in interface Property
Parameters:
newXm - com.ibm.DDbEv2.InterfacesEvents.XModelIF

validate

public boolean validate(java.lang.Object dt)
If getFixed(), returns true if all non-null instances associated with xm are equal, If getRequired() returns true if all instances associated with xm are non-null
Specified by:
validate in interface Property


Copyright © 1999-2001 Apache XML Project. All Rights Reserved.