Package com.restfb.types
Class OpenGraphPropertyConfig
java.lang.Object
com.restfb.types.OpenGraphPropertyConfig
Represents the Open
Graph Property Config type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAllowedValue
(String value) void
addStructConfig
(String key, OpenGraphPropertyConfig value) For enum properties, the set of allowed valuesFor string properties, whether the value is always lowercaseFor string properties, whether the value is always uppercaseHuman-readable name of the propertyThe name of the property to use in markup and APIWhether the property is hidden from News FeedWhether the property takes multiple valuesFor numeric properties, the upper bound on the valueFor string properties, the upper bound on the value lengthFor numeric properties, the lower bound on the valueFor string properties, the lower bound on the value lengthFor reference properties, the object type associated with the propertyWhether the property is requiredIf set, at least one property for each group needs to be setFor struct properties, the config for the nested propertiesgetType()
Type of the propertyboolean
removeAllowedValue
(String value) void
removeStructConfig
(String key) void
setConvertLowercase
(Boolean convertLowercase) For string properties, whether the value is always lowercasevoid
setConvertUppercase
(Boolean convertUppercase) For string properties, whether the value is always uppercasevoid
setDisplayName
(String displayName) Human-readable name of the propertyvoid
setFormalName
(String formalName) The name of the property to use in markup and APIvoid
setHideFromNewsFeed
(Boolean hideFromNewsFeed) Whether the property is hidden from News Feedvoid
setIsArray
(Boolean isArray) Whether the property takes multiple valuesvoid
setMaxAllowed
(Double maxAllowed) For numeric properties, the upper bound on the valuevoid
setMaxLength
(Integer maxLength) For string properties, the upper bound on the value lengthvoid
setMinAllowed
(Double minAllowed) For numeric properties, the lower bound on the valuevoid
setMinLength
(Integer minLength) For string properties, the lower bound on the value lengthvoid
setReferenceObjectType
(String referenceObjectType) For reference properties, the object type associated with the propertyvoid
setRequired
(Boolean required) Whether the property is requiredvoid
setRequiredGroup
(String requiredGroup) If set, at least one property for each group needs to be setvoid
Type of the property
-
Constructor Details
-
OpenGraphPropertyConfig
public OpenGraphPropertyConfig()
-
-
Method Details
-
getAllowedValues
For enum properties, the set of allowed values- Returns:
- the set of allowed values
-
addAllowedValue
-
removeAllowedValue
-
getStructConfig
For struct properties, the config for the nested properties- Returns:
- the config for the nested properties
-
addStructConfig
-
removeStructConfig
-
getConvertLowercase
For string properties, whether the value is always lowercase -
setConvertLowercase
For string properties, whether the value is always lowercase -
getConvertUppercase
For string properties, whether the value is always uppercase -
setConvertUppercase
For string properties, whether the value is always uppercase -
getDisplayName
Human-readable name of the property -
setDisplayName
Human-readable name of the property -
getFormalName
The name of the property to use in markup and API -
setFormalName
The name of the property to use in markup and API -
getHideFromNewsFeed
Whether the property is hidden from News Feed -
setHideFromNewsFeed
Whether the property is hidden from News Feed -
getIsArray
Whether the property takes multiple values -
setIsArray
Whether the property takes multiple values -
getMaxAllowed
For numeric properties, the upper bound on the value -
setMaxAllowed
For numeric properties, the upper bound on the value -
getMaxLength
For string properties, the upper bound on the value length -
setMaxLength
For string properties, the upper bound on the value length -
getMinAllowed
For numeric properties, the lower bound on the value -
setMinAllowed
For numeric properties, the lower bound on the value -
getMinLength
For string properties, the lower bound on the value length -
setMinLength
For string properties, the lower bound on the value length -
getReferenceObjectType
For reference properties, the object type associated with the property -
setReferenceObjectType
For reference properties, the object type associated with the property -
getRequired
Whether the property is required -
setRequired
Whether the property is required -
getRequiredGroup
If set, at least one property for each group needs to be set -
setRequiredGroup
If set, at least one property for each group needs to be set -
getType
Type of the property -
setType
Type of the property
-