public abstract class AbstractPage extends com.helger.commons.collections.attrs.MapBasedAttributeContainer implements IPage
IPage.| Constructor and Description |
|---|
AbstractPage(String sID)
Constructor
|
AbstractPage(String sID,
com.helger.commons.text.IReadonlyMultiLingualText aName)
Constructor
|
AbstractPage(String sID,
com.helger.commons.text.IReadonlyMultiLingualText aName,
com.helger.commons.text.IReadonlyMultiLingualText aDescription)
Constructor
|
AbstractPage(String sID,
String sName)
Constructor
|
AbstractPage(String sID,
String sName,
String sDescription)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.text.IReadonlyMultiLingualText |
getDescription() |
String |
getDescription(Locale aContentLocale)
Get the description of the page in the passed locale.
|
String |
getDisplayText(Locale aContentLocale) |
String |
getID() |
com.helger.commons.text.IReadonlyMultiLingualText |
getName() |
void |
setDescription(com.helger.commons.text.IReadonlyMultiLingualText aDescription)
Set the description of the page.
|
void |
setName(com.helger.commons.text.IReadonlyMultiLingualText aName)
Set the name of the page.
|
String |
toString() |
getAndSetAttributeFlag, getClone, setAttribute, setAttribute, setAttribute, setAttributeclear, containsAttribute, containsNoAttribute, equals, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeCount, getAttributeNames, getAttributeObject, hashCode, onBeforeRemoveAttribute, onBeforeSetAttributeValue, removeAttribute, setAttribute, setAttributes, setAttributesgetAsBigDecimal, getAsBigInteger, getAsBoolean, getAsDouble, getAsInt, getAsLong, getAsString, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttributeclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAttribute, containsNoAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeNames, getAttributeObject, getCastedAttribute, getCastedAttribute, getTypedAttribute, getTypedAttributepublic 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.IReadonlyMultiLingualText 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.IReadonlyMultiLingualText aName, @Nullable com.helger.commons.text.IReadonlyMultiLingualText 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.@Nonnull @Nonempty public final String getID()
getID in interface com.helger.commons.id.IHasID<String>public final void setName(@Nonnull com.helger.commons.text.IReadonlyMultiLingualText aName)
aName - The multilingual name of the page. May not be null.@Nonnull public final com.helger.commons.text.IReadonlyMultiLingualText getName()
null.@Nullable public final String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface com.helger.commons.name.IHasDisplayTextpublic final void setDescription(@Nullable com.helger.commons.text.IReadonlyMultiLingualText aDescription)
aDescription - The multilingual description of the page. May be null.@Nullable public final com.helger.commons.text.IReadonlyMultiLingualText 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.Copyright © 2014–2015 Philip Helger. All rights reserved.