|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A particular Restriction that represents a constraint on values of a particular set of Types.
Nested Class Summary | |
static class |
Restriction.CreationFailure
An error class that may be thrown when a Restriction cannot be constructed. |
Method Summary | |
boolean |
accepts(boolean b)
Check the constraint of this Restriction against the given value. |
boolean |
accepts(byte b)
|
boolean |
accepts(char c)
|
boolean |
accepts(double d)
|
boolean |
accepts(float s)
|
boolean |
accepts(int i)
|
boolean |
accepts(long l)
|
boolean |
accepts(java.lang.Object value)
|
boolean |
accepts(short s)
|
boolean |
acceptsNode(Node n)
|
boolean |
acceptsString(java.lang.String s)
|
boolean |
canRestrict(Type type)
Can this Restriction be applied to this Type? |
Method Detail |
public boolean canRestrict(Type type)
public boolean accepts(boolean b)
public boolean accepts(char c)
public boolean accepts(byte b)
public boolean accepts(short s)
public boolean accepts(int i)
public boolean accepts(long l)
public boolean accepts(float s)
public boolean accepts(double d)
public boolean acceptsString(java.lang.String s)
public boolean acceptsNode(Node n)
public boolean accepts(java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |