Class MetadataField
- java.lang.Object
-
- com.communardo.confluence.metadata.MetadataField
-
public class MetadataField extends Object
-
-
Constructor Summary
Constructors Constructor Description MetadataField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()Gets the description.intgetId()Gets the id.StringgetKey()Gets the key.com.atlassian.confluence.spaces.SpacegetSpace()Gets the space.StringgetTitle()Gets the title.MetadataFieldTypegetType()Gets the type.inthashCode()booleanisHidden()Checks if is hidden.booleanisRequired()Checks if this field is required.voidsetDescription(String description)Sets the description.voidsetHidden(boolean hidden)Sets the hidden.voidsetId(int id)Sets the id.voidsetKey(String key)Sets the key.voidsetRequired(boolean required)Sets the required.voidsetSpace(com.atlassian.confluence.spaces.Space space)Sets the space.voidsetTitle(String title)Sets the title.voidsetType(MetadataFieldType type)Sets the type.
-
-
-
Method Detail
-
getTitle
public String getTitle()
Gets the title.- Returns:
- the title
-
setTitle
public void setTitle(String title)
Sets the title.- Parameters:
title- the new title
-
getDescription
public String getDescription()
Gets the description.- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets the description.- Parameters:
description- the new description
-
getId
public int getId()
Gets the id.- Returns:
- the id
-
setId
public void setId(int id)
Sets the id.- Parameters:
id- the new id
-
setRequired
public void setRequired(boolean required)
Sets the required.- Parameters:
required- the new required
-
isRequired
public boolean isRequired()
Checks if this field is required. Only set if you load it in a metadataset.- Returns:
- true, if is required
-
getType
public MetadataFieldType getType()
Gets the type.- Returns:
- the type
-
setType
public void setType(MetadataFieldType type)
Sets the type.- Parameters:
type- the new type
-
getKey
public String getKey()
Gets the key.- Returns:
- the key
-
setKey
public void setKey(String key)
Sets the key.- Parameters:
key- the new key
-
getSpace
public com.atlassian.confluence.spaces.Space getSpace()
Gets the space.- Returns:
- the space
-
setSpace
public void setSpace(com.atlassian.confluence.spaces.Space space)
Sets the space.- Parameters:
space- the new space
-
isHidden
public boolean isHidden()
Checks if is hidden.- Returns:
- true, if is hidden
-
setHidden
public void setHidden(boolean hidden)
Sets the hidden.- Parameters:
hidden- the new hidden
-
-