public class MockObjectType extends Object implements ObjectType
ObjectType
.Constructor and Description |
---|
MockObjectType() |
MockObjectType(boolean matches)
Construct.
|
Modifier and Type | Method and Description |
---|---|
ValueType |
getValueType() |
boolean |
isAssignableFrom(Object object) |
boolean |
isAssignableFrom(ObjectType objectType) |
boolean |
isEvent()
Returns true if the object type represented by this object
is an event object type.
|
boolean |
matches(Object object)
Determine if the passed
Object belongs to the object type
defined by this objectType instance. |
void |
readExternal(ObjectInput in) |
void |
setEvent(boolean isEvent) |
void |
writeExternal(ObjectOutput out) |
public MockObjectType()
public MockObjectType(boolean matches)
objectTypeClass
- Java object class.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public boolean matches(Object object)
Object
belongs to the object type
defined by this objectType
instance.object
- The Object
to test.true
if the Object
matches this
object type, else false
.public boolean isAssignableFrom(Object object)
public boolean isAssignableFrom(ObjectType objectType)
isAssignableFrom
in interface ObjectType
public ValueType getValueType()
getValueType
in interface ObjectType
public boolean isEvent()
ObjectType
isEvent
in interface ObjectType
public void setEvent(boolean isEvent)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.