@NotThreadSafe public abstract class AbstractPage extends Object implements IPage
IPage.| Constructor and Description |
|---|
AbstractPage(String sID)
Constructor
|
AbstractPage(String sID,
com.helger.commons.text.IMultilingualText aName)
Constructor
|
AbstractPage(String sID,
com.helger.commons.text.IMultilingualText aName,
com.helger.commons.text.IMultilingualText aDescription)
Constructor
|
AbstractPage(String sID,
String sName)
Constructor
|
AbstractPage(String sID,
String sName,
String sDescription)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.text.ReadOnlyMultilingualText |
getAsMLT(String sText) |
com.helger.commons.text.IMultilingualText |
getDescription() |
String |
getDescription(Locale aContentLocale)
Get the description of the page in the passed locale.
|
String |
getDisplayText(Locale aContentLocale) |
String |
getID() |
com.helger.commons.collection.attr.IMutableAttributeContainerAny<String> |
getMutableAttributes() |
com.helger.commons.text.IMultilingualText |
getName() |
void |
setDescription(com.helger.commons.text.IMultilingualText aDescription)
Set the description of the page.
|
void |
setName(com.helger.commons.text.IMultilingualText aName)
Set the name of the page.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsHasText, getComparatorCollatingpublic AbstractPage(@Nonnull @Nonempty String sID)
sID - The unique page ID. May not be null.public AbstractPage(@Nonnull @Nonempty String sID, @Nonnull String sName)
sID - The unique page ID. May not be null.sName - The constant (non-translatable) name of the page. May not be
null.public AbstractPage(@Nonnull @Nonempty String sID, @Nonnull String sName, @Nullable String sDescription)
sID - The unique page ID. May not be null.sName - The constant (non-translatable) name of the page. May not be
null.sDescription - The constant (non-translatable) description of the page. May be
null.public AbstractPage(@Nonnull @Nonempty String sID, @Nonnull com.helger.commons.text.IMultilingualText aName)
sID - The unique page ID. May not be null.aName - The name of the page. May not be null.public AbstractPage(@Nonnull @Nonempty String sID, @Nonnull com.helger.commons.text.IMultilingualText aName, @Nullable com.helger.commons.text.IMultilingualText aDescription)
sID - The unique page ID. May not be null.aName - The name of the page. May not be null.aDescription - Optional description of the page. May be null.@Nullable public static com.helger.commons.text.ReadOnlyMultilingualText getAsMLT(@Nullable String sText)
@Nonnull @Nonempty public final String getID()
getID in interface com.helger.commons.id.IHasID<String>public final void setName(@Nonnull com.helger.commons.text.IMultilingualText aName)
aName - The multilingual name of the page. May not be null.@Nonnull public final com.helger.commons.text.IMultilingualText getName()
null.@Nullable public final String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface com.helger.commons.text.display.IHasDisplayTextpublic final void setDescription(@Nullable com.helger.commons.text.IMultilingualText aDescription)
aDescription - The multilingual description of the page. May be null.@Nullable public final com.helger.commons.text.IMultilingualText getDescription()
null.@Nullable public final String getDescription(@Nonnull Locale aContentLocale)
IPagegetDescription in interface IPageaContentLocale - The content locale to get the description from. May not be
null.null if no description text in the specified locale is
available.@Nonnull @ReturnsMutableObject(value="design") public com.helger.commons.collection.attr.IMutableAttributeContainerAny<String> getMutableAttributes()
Copyright © 2014–2017 Philip Helger. All rights reserved.