Class PropertiesOptions
java.lang.Object
org.brapi.schematools.core.options.PropertiesOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of ID, Name and PUI property and their usage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIdPropertyFor(BrAPIType type) Gets the id property for a typegetIdPropertyNameFor(String type) Gets the id property name for a typeGets the id property name for a typegetIdsPropertyNameFor(BrAPIObjectProperty property) Gets the converted ids link property name for a propertygetLinkPropertiesFor(BrAPIObjectType brAPIObjectType) Gets the list of link properties that are used to generate links to the provided object type.getLinkTypeFor(BrAPIObjectType type, BrAPIObjectProperty property) Gets the link type for a type propertyvoidoverride(PropertiesOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullvalidate()Checks if the Validatable object is valid, return a list of errors if it is not validMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.brapi.schematools.core.options.Options
getSchemaToolsVersion
-
Constructor Details
-
PropertiesOptions
public PropertiesOptions()
-
-
Method Details
-
validate
Description copied from interface:ValidatableChecks if the Validatable object is valid, return a list of errors if it is not valid- Specified by:
validatein interfaceValidatable- Returns:
- a Validation object than can be used queried to find if the object is valid and any errors if it is not valid
-
override
Overrides the values in this Options Object from the provided Options Object if they are non-null- Parameters:
overrideOptions- the options which will be used to override this Options Object
-
getLinkPropertiesFor
Gets the list of link properties that are used to generate links to the provided object type. This is usually the object dbId, but can also be the name and/or PUI.- Parameters:
brAPIObjectType- the object type from which the properties will be obtained- Returns:
- list of link properties that are used to generate links to the object
-
getIdPropertyNameFor
Gets the id property name for a type- Parameters:
type- The BrAPI type- Returns:
- the id property name for a type
-
getIdPropertyNameFor
Gets the id property name for a type- Parameters:
type- The BrAPI type- Returns:
- the id property name for a type
-
getIdsPropertyNameFor
Gets the converted ids link property name for a property- Parameters:
property- The BrAPI property- Returns:
- the converted property name that is used to return an array of ids
-
getIdPropertyFor
Gets the id property for a type- Parameters:
type- The BrAPI type- Returns:
- the id property for a type
-
getLinkTypeFor
Gets the link type for a type property- Parameters:
type- The BrAPI Object typeproperty- The BrAPI property- Returns:
- the link type for specified type property
-