|
JAXB v0.21 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--javax.xml.bind.PredicatedLists
Lists for implementing schema-derived list properties.
A predicated list enforces a predicate represented by an object
that implements the PredicatedLists.Predicate interface. If an
attempt is made to add an object that does not satisfy the predicate then an
appropriate runtime exception is thrown.
A predicated list optionally invalidates the marshallable object with which it is associated after the list is modified in any way. This ensures that both the marshallable object and the list are revalidated during the next validation operation.
| Inner Class Summary | |
static interface |
PredicatedLists.Predicate
A predicate for a predicated list. |
| Method Summary | |
static List |
create(MarshallableObject mob,
PredicatedLists.Predicate pred,
List list)
Constructs a new predicated list. |
static List |
createInvalidating(MarshallableObject mob,
PredicatedLists.Predicate pred,
List list)
Constructs a new invalidating predicated list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static List create(MarshallableObject mob,
PredicatedLists.Predicate pred,
List list)
mob - The marshallable object with which the new predicated list
is to be associatedpred - The predicate to be enforced upon list elementslist - The list that will back the new predicated list
public static List createInvalidating(MarshallableObject mob,
PredicatedLists.Predicate pred,
List list)
The given marshallable object will be invalidated each time the list is modified.
mob - The marshallable object with which the new predicated list
is to be associatedpred - The predicate to be enforced upon list elementslist - The list that will back the new predicated list
|
JAXB v0.21 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Copyright © 2001 by Sun Microsystems, Inc., 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.