Class ObjectDefinition
-
- All Implemented Interfaces:
@Serializable() public final class ObjectDefinition implements IGenericDefinition, WithComment
Represents an object definition in a Wrap ABI.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final Integerkindprivate final Stringnameprivate final Booleanrequiredprivate final Stringcommentprivate final List<PropertyDefinition>propertiesprivate final List<GenericDefinition>interfaces
-
Constructor Summary
Constructors Constructor Description ObjectDefinition(String type, Integer kind, String name, Boolean required, String comment, List<PropertyDefinition> properties, List<GenericDefinition> interfaces)
-
Method Summary
Modifier and Type Method Description StringgetType()Type of the object definition. IntegergetKind()Kind of the definition. StringgetName()Optional name of the object definition. BooleangetRequired()Boolean indicating whether the object definition is required or not. StringgetComment()Optional comment about the object definition. final List<PropertyDefinition>getProperties()List of PropertyDefinitions that define the properties of the object. final List<GenericDefinition>getInterfaces()List of interfaces that define the interfaces implemented by the object. -
-
Constructor Detail
-
ObjectDefinition
ObjectDefinition(String type, Integer kind, String name, Boolean required, String comment, List<PropertyDefinition> properties, List<GenericDefinition> interfaces)
-
-
Method Detail
-
getRequired
Boolean getRequired()
Boolean indicating whether the object definition is required or not.
-
getComment
String getComment()
Optional comment about the object definition.
-
getProperties
final List<PropertyDefinition> getProperties()
List of PropertyDefinitions that define the properties of the object.
-
getInterfaces
final List<GenericDefinition> getInterfaces()
List of interfaces that define the interfaces implemented by the object.
-
-
-
-