Package com.yetanalytics.xapi.model
Class Agent
- java.lang.Object
-
- com.yetanalytics.xapi.model.AbstractObject
-
- com.yetanalytics.xapi.model.AbstractActor
-
- com.yetanalytics.xapi.model.Agent
-
- All Implemented Interfaces:
JSONObject,Serializable
public class Agent extends AbstractActor
A concrete class representation of the Agent Component of the 9274.1.1 xAPI Specification. This class has no fields because it only contains what it inherits from AbstractActor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Agent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @jakarta.validation.constraints.AssertFalse(message="Agent must not be empty") booleanisEmpty()@jakarta.validation.constraints.AssertTrue(message="Agent must have exactly 1 Inverse Functional Identifier (IFI)") booleanisIdentifiedAgent()Assertion that the Agent has only 1 Inverse Functional Identifier (IFI).booleanisValidAuthority()-
Methods inherited from class com.yetanalytics.xapi.model.AbstractActor
countIFIs, getAccount, getMbox, getMbox_sha1sum, getName, getOpenid, setAccount, setMbox, setMbox_sha1sum, setName, setOpenid
-
Methods inherited from class com.yetanalytics.xapi.model.AbstractObject
getObjectType, setObjectType
-
-
-
-
Method Detail
-
isEmpty
@AssertFalse(message="Agent must not be empty") public @jakarta.validation.constraints.AssertFalse(message="Agent must not be empty") boolean isEmpty()
- Specified by:
isEmptyin interfaceJSONObject- Overrides:
isEmptyin classAbstractActor
-
isIdentifiedAgent
@AssertTrue(message="Agent must have exactly 1 Inverse Functional Identifier (IFI)") public @jakarta.validation.constraints.AssertTrue(message="Agent must have exactly 1 Inverse Functional Identifier (IFI)") boolean isIdentifiedAgent()
Assertion that the Agent has only 1 Inverse Functional Identifier (IFI).- Returns:
- true if the Agent has exactly 1 IFI, false otherwise
-
isValidAuthority
public boolean isValidAuthority()
- Specified by:
isValidAuthorityin classAbstractActor
-
-