public class Part extends Object
Constructor and Description |
---|
Part()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
Property |
getDefaultProperty()
Default property
|
String |
getExternalEditorUrl()
External editor URL
|
String |
getGlobalId()
Global ID of the part
|
Integer |
getId()
Local ID of the part
|
String |
getKeyword()
Part keyword
|
String |
getName()
Part name
|
List<SelectOption> |
getOptions()
Possible options
|
OverviewSetting |
getOverviewSettings()
Overview settings (if type is OVERVIEW)
|
RegexModel |
getRegex()
Regular expression definition for validation of text parttypes
|
SelectSetting |
getSelectSettings()
Selection settings (if type is SELECT or MULTISELECT)
|
Property.Type |
getType()
Part type
|
int |
getTypeId()
Part type ID
|
boolean |
isEditable()
True if the part is editable
|
boolean |
isHidden()
True if the part is hidden
|
boolean |
isHideInEditor()
Flag for hiding the part in the Tag Editor
|
boolean |
isLiveEditable()
True if the part is live (inline) editable
|
boolean |
isMandatory()
True if the part is mandatory
|
void |
setDefaultProperty(Property defaultProperty)
Set the default property
|
void |
setEditable(boolean editable) |
void |
setExternalEditorUrl(String externalEditorUrl)
Set the URL to the external editor
|
void |
setGlobalId(String globalId)
Set the global ID
|
void |
setHidden(boolean hidden) |
void |
setHideInEditor(boolean hideInEditor)
Set hideInEditor flag
|
void |
setId(Integer id)
Set the local ID
|
void |
setKeyword(String keyword) |
void |
setLiveEditable(boolean liveEditable) |
void |
setMandatory(boolean mandatory)
Set the mandatory flag
|
void |
setName(String name) |
void |
setOptions(List<SelectOption> options) |
void |
setOverviewSettings(OverviewSetting overviewSettings)
Set overview settings
|
void |
setRegex(RegexModel regex)
Set regular expression
|
void |
setSelectSettings(SelectSetting selectSettings)
Set selection settings
|
void |
setType(Property.Type type)
Set the type
|
void |
setTypeId(int typeId)
Set the part type ID
|
public String getName()
public void setName(String name)
name
- the name to setpublic String getKeyword()
public void setKeyword(String keyword)
keyword
- the keyword to setpublic boolean isHidden()
public void setHidden(boolean hidden)
hidden
- the hidden to setpublic boolean isEditable()
public void setEditable(boolean editable)
editable
- the editable to setpublic boolean isLiveEditable()
public void setLiveEditable(boolean liveEditable)
liveEditable
- the liveEditable to setpublic boolean isMandatory()
public void setMandatory(boolean mandatory)
mandatory
- flagpublic Property.Type getType()
public void setType(Property.Type type)
type
- typepublic int getTypeId()
public void setTypeId(int typeId)
typeId
- type IDpublic Integer getId()
public void setId(Integer id)
id
- local idpublic String getGlobalId()
public void setGlobalId(String globalId)
globalId
- global IDpublic Property getDefaultProperty()
public void setDefaultProperty(Property defaultProperty)
defaultProperty
- default propertypublic RegexModel getRegex()
public void setRegex(RegexModel regex)
regex
- regular expressionpublic boolean isHideInEditor()
public void setHideInEditor(boolean hideInEditor)
hideInEditor
- flagpublic String getExternalEditorUrl()
public void setExternalEditorUrl(String externalEditorUrl)
externalEditorUrl
- URLpublic List<SelectOption> getOptions()
public void setOptions(List<SelectOption> options)
options
- the options to setpublic OverviewSetting getOverviewSettings()
public void setOverviewSettings(OverviewSetting overviewSettings)
overviewSettings
- overview settingspublic SelectSetting getSelectSettings()
public void setSelectSettings(SelectSetting selectSettings)
selectSettings
- selection settingsCopyright © 2019 Gentics Software. All rights reserved.