|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jverbnet.data.VerbClass
public class VerbClass
Default implementation of the IVerbClass
interface
Constructor Summary | |
---|---|
VerbClass(java.lang.String id,
java.util.List<IMember.IMemberBuilder> memberBs,
java.util.List<IThematicRole.IThematicRoleBuilder> roleBs,
java.util.List<IFrame.IFrameBuilder> frameBs,
java.util.List<IVerbClass> subclasses)
Creates a new verb class with the specified parameters |
Method Summary | |
---|---|
protected void |
checkParentSet(boolean expectedValue)
Throws an exception if the isParentSet flag is not the expected value. |
java.util.List<IFrame> |
getFrames()
Returns the frames this verb class. |
java.lang.String |
getID()
Returns the id of the verbnet class. |
java.util.List<IMember> |
getMembers()
Returns the members of this verb class. |
IVerbClass |
getParent()
Returns the parent class of this verb class, or null if this
class is a root class. |
java.util.List<IVerbClass> |
getSubclasses()
Returns the subclasses of this verb class. |
java.util.List<IThematicRole> |
getThematicRoles()
Returns the thematic roles of this verb class. |
boolean |
isRoot()
Returns true if this verb class has no parent;
false otherwise. |
void |
setParent(IVerbClass parent)
Sets the parent of this verb class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerbClass(java.lang.String id, java.util.List<IMember.IMemberBuilder> memberBs, java.util.List<IThematicRole.IThematicRoleBuilder> roleBs, java.util.List<IFrame.IFrameBuilder> frameBs, java.util.List<IVerbClass> subclasses)
id
- the id of the verb class; may not be null
, empty,
or all whitespacememberBs
- the builders that will create the members;roleBs
- the builders that will create the thematic roles; may not be
null
, may not contains null
, and
must have at least one elementframeBs
- the builders that will create the frames; may not be
null
, may not contains null
, and
must have at least one elementsubclasses
- the subclasses of this verb class; should not have their
parents set; may be null
or emptyMethod Detail |
---|
public java.lang.String getID()
IVerbClass
getID
in interface IVerbClass
null
public IVerbClass getParent()
IVerbClass
null
if this
class is a root class.
getParent
in interface IVerbClass
null
if this
class is a root class.public boolean isRoot()
IVerbClass
true
if this verb class has no parent;
false
otherwise.
isRoot
in interface IVerbClass
true
if this verb class has no parent;
false
otherwise.public void setParent(IVerbClass parent)
IVerbClass
null
. The parent may only be set once: the method will throw
an exception if it is called a second time.
setParent
in interface IVerbClass
parent
- the parent of the class; may be null
, in which
case the class will be a root classprotected void checkParentSet(boolean expectedValue)
expectedValue
- the expected value of the isParentSet flagpublic java.util.List<IMember> getMembers()
IVerbClass
null
or empty list.
getMembers
in interface IVerbClass
null
, non-empty list of members of this verb
class.public java.util.List<IThematicRole> getThematicRoles()
IVerbClass
null
or empty list.
getThematicRoles
in interface IVerbClass
null
, non-empty list of thematic roles of this verb
class.public java.util.List<IFrame> getFrames()
IVerbClass
null
or empty list.
getFrames
in interface IVerbClass
null
, non-empty list of frames of this verb
class.public java.util.List<IVerbClass> getSubclasses()
IVerbClass
null
list, but it may be empty. Each verb class in the
returned list will return this object via its IVerbClass.getParent()
method.
getSubclasses
in interface IVerbClass
null
list of subclasses of this verb class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |