Package com.restfb.types
Class OpenGraphPropertyConfig
- java.lang.Object
-
- com.restfb.types.OpenGraphPropertyConfig
-
public class OpenGraphPropertyConfig extends Object
Represents the Open Graph Property Config type
-
-
Constructor Summary
Constructors Constructor Description OpenGraphPropertyConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAllowedValue(String value)
void
addStructConfig(String key, OpenGraphPropertyConfig value)
List<String>
getAllowedValues()
For enum properties, the set of allowed valuesBoolean
getConvertLowercase()
For string properties, whether the value is always lowercaseBoolean
getConvertUppercase()
For string properties, whether the value is always uppercaseString
getDisplayName()
Human-readable name of the propertyString
getFormalName()
The name of the property to use in markup and APIBoolean
getHideFromNewsFeed()
Whether the property is hidden from News FeedBoolean
getIsArray()
Whether the property takes multiple valuesDouble
getMaxAllowed()
For numeric properties, the upper bound on the valueInteger
getMaxLength()
For string properties, the upper bound on the value lengthDouble
getMinAllowed()
For numeric properties, the lower bound on the valueInteger
getMinLength()
For string properties, the lower bound on the value lengthString
getReferenceObjectType()
For reference properties, the object type associated with the propertyBoolean
getRequired()
Whether the property is requiredString
getRequiredGroup()
If set, at least one property for each group needs to be setMap<String,OpenGraphPropertyConfig>
getStructConfig()
For struct properties, the config for the nested propertiesString
getType()
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
setType(String type)
Type of the property
-
-
-
Constructor Detail
-
OpenGraphPropertyConfig
public OpenGraphPropertyConfig()
-
-
Method Detail
-
getAllowedValues
public List<String> getAllowedValues()
For enum properties, the set of allowed values- Returns:
- the set of allowed values
-
addAllowedValue
public boolean addAllowedValue(String value)
-
removeAllowedValue
public boolean removeAllowedValue(String value)
-
getStructConfig
public Map<String,OpenGraphPropertyConfig> getStructConfig()
For struct properties, the config for the nested properties- Returns:
- the config for the nested properties
-
addStructConfig
public void addStructConfig(String key, OpenGraphPropertyConfig value)
-
removeStructConfig
public void removeStructConfig(String key)
-
getConvertLowercase
public Boolean getConvertLowercase()
For string properties, whether the value is always lowercase
-
setConvertLowercase
public void setConvertLowercase(Boolean convertLowercase)
For string properties, whether the value is always lowercase
-
getConvertUppercase
public Boolean getConvertUppercase()
For string properties, whether the value is always uppercase
-
setConvertUppercase
public void setConvertUppercase(Boolean convertUppercase)
For string properties, whether the value is always uppercase
-
getDisplayName
public String getDisplayName()
Human-readable name of the property
-
setDisplayName
public void setDisplayName(String displayName)
Human-readable name of the property
-
getFormalName
public String getFormalName()
The name of the property to use in markup and API
-
setFormalName
public void setFormalName(String formalName)
The name of the property to use in markup and API
-
getHideFromNewsFeed
public Boolean getHideFromNewsFeed()
Whether the property is hidden from News Feed
-
setHideFromNewsFeed
public void setHideFromNewsFeed(Boolean hideFromNewsFeed)
Whether the property is hidden from News Feed
-
getIsArray
public Boolean getIsArray()
Whether the property takes multiple values
-
setIsArray
public void setIsArray(Boolean isArray)
Whether the property takes multiple values
-
getMaxAllowed
public Double getMaxAllowed()
For numeric properties, the upper bound on the value
-
setMaxAllowed
public void setMaxAllowed(Double maxAllowed)
For numeric properties, the upper bound on the value
-
getMaxLength
public Integer getMaxLength()
For string properties, the upper bound on the value length
-
setMaxLength
public void setMaxLength(Integer maxLength)
For string properties, the upper bound on the value length
-
getMinAllowed
public Double getMinAllowed()
For numeric properties, the lower bound on the value
-
setMinAllowed
public void setMinAllowed(Double minAllowed)
For numeric properties, the lower bound on the value
-
getMinLength
public Integer getMinLength()
For string properties, the lower bound on the value length
-
setMinLength
public void setMinLength(Integer minLength)
For string properties, the lower bound on the value length
-
getReferenceObjectType
public String getReferenceObjectType()
For reference properties, the object type associated with the property
-
setReferenceObjectType
public void setReferenceObjectType(String referenceObjectType)
For reference properties, the object type associated with the property
-
getRequired
public Boolean getRequired()
Whether the property is required
-
setRequired
public void setRequired(Boolean required)
Whether the property is required
-
getRequiredGroup
public String getRequiredGroup()
If set, at least one property for each group needs to be set
-
setRequiredGroup
public void setRequiredGroup(String requiredGroup)
If set, at least one property for each group needs to be set
-
-