FileDocCategorySizeDatePackage
Cast.javaAPI DocExample4718Sun Jul 07 09:31:54 BST 2002javajaxb.generated.movies

Cast

public class Cast extends javax.xml.bind.MarshallableObject implements Element

Fields Summary
private List
_Actor
private javax.xml.bind.PredicatedLists.Predicate
pred_Actor
Constructors Summary
Methods Summary
public voiddeleteActor()

        _Actor = null;
        invalidate();
    
public voidemptyActor()

        _Actor = PredicatedLists.createInvalidating(this, pred_Actor, new ArrayList());
    
public booleanequals(java.lang.Object ob)

        if (this == ob) {
            return true;
        }
        if (!(ob instanceof Cast)) {
            return false;
        }
        Cast tob = ((Cast) ob);
        if (_Actor!= null) {
            if (tob._Actor == null) {
                return false;
            }
            if (!_Actor.equals(tob._Actor)) {
                return false;
            }
        } else {
            if (tob._Actor!= null) {
                return false;
            }
        }
        return true;
    
public java.util.ListgetActor()


       
        return _Actor;
    
public inthashCode()

        int h = 0;
        h = ((127 *h)+((_Actor!= null)?_Actor.hashCode(): 0));
        return h;
    
public voidmarshal(javax.xml.bind.Marshaller m)

        XMLWriter w = m.writer();
        w.start("cast");
        for (Iterator i = _Actor.iterator(); i.hasNext(); ) {
            m.marshal(((MarshallableObject) i.next()));
        }
        w.end("cast");
    
public static javax.xml.bind.DispatchernewDispatcher()

        return Actor.newDispatcher();
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer("<<cast");
        if (_Actor!= null) {
            sb.append(" actor=");
            sb.append(_Actor.toString());
        }
        sb.append(">>");
        return sb.toString();
    
public static javajaxb.generated.movies.Castunmarshal(javax.xml.marshal.XMLScanner xs, javax.xml.bind.Dispatcher d)

        return ((Cast) d.unmarshal(xs, (Cast.class)));
    
public voidunmarshal(javax.xml.bind.Unmarshaller u)

        XMLScanner xs = u.scanner();
        Validator v = u.validator();
        xs.takeStart("cast");
        while (xs.atAttribute()) {
            String an = xs.takeAttributeName();
            throw new InvalidAttributeException(an);
        }
        {
            List l = PredicatedLists.create(this, pred_Actor, new ArrayList());
            while (xs.atStart("actor")) {
                l.add(((Actor) u.unmarshal()));
            }
            _Actor = PredicatedLists.createInvalidating(this, pred_Actor, l);
        }
        xs.takeEnd("cast");
    
public static javajaxb.generated.movies.Castunmarshal(java.io.InputStream in)

        return unmarshal(XMLScanner.open(in));
    
public static javajaxb.generated.movies.Castunmarshal(javax.xml.marshal.XMLScanner xs)

        return unmarshal(xs, newDispatcher());
    
public voidvalidate(javax.xml.bind.Validator v)

        for (Iterator i = _Actor.iterator(); i.hasNext(); ) {
            v.validate(((ValidatableObject) i.next()));
        }
    
public voidvalidateThis()

        if (_Actor == null) {
            throw new MissingContentException("actor");
        }