Package com.restfb.types
Class OpenGraphPropertyConfig
java.lang.Object
com.restfb.types.OpenGraphPropertyConfig
Represents the Open
Graph Property Config type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllowedValue(String value) voidaddStructConfig(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 propertybooleanremoveAllowedValue(String value) voidremoveStructConfig(String key) voidsetConvertLowercase(Boolean convertLowercase) For string properties, whether the value is always lowercasevoidsetConvertUppercase(Boolean convertUppercase) For string properties, whether the value is always uppercasevoidsetDisplayName(String displayName) Human-readable name of the propertyvoidsetFormalName(String formalName) The name of the property to use in markup and APIvoidsetHideFromNewsFeed(Boolean hideFromNewsFeed) Whether the property is hidden from News FeedvoidsetIsArray(Boolean isArray) Whether the property takes multiple valuesvoidsetMaxAllowed(Double maxAllowed) For numeric properties, the upper bound on the valuevoidsetMaxLength(Integer maxLength) For string properties, the upper bound on the value lengthvoidsetMinAllowed(Double minAllowed) For numeric properties, the lower bound on the valuevoidsetMinLength(Integer minLength) For string properties, the lower bound on the value lengthvoidsetReferenceObjectType(String referenceObjectType) For reference properties, the object type associated with the propertyvoidsetRequired(Boolean required) Whether the property is requiredvoidsetRequiredGroup(String requiredGroup) If set, at least one property for each group needs to be setvoidType 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
-