public abstract class AbstractProperty extends Object implements IProperty, Serializable
IPropertyName), type (PropertyType), some internal
system attributes (PropertyFlags), some more arbitrary attributes, a
natural language description and most important a value. For each type exists
a specific property interface and implementation extending this interface.IProperty,
PropertyFlags,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Properties |
attributes |
protected int |
flags |
protected IPropertyName |
name |
protected ResourceBundles |
resourceBundles |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProperty(IPropertyName name,
Properties attributes,
int flags,
ResourceBundles resourceBundles)
Construct property instance based on its internals.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areFlagsSet()
Return true if the internal system attributes are set.
|
boolean |
equals(Object obj)
Check this and another object for equality.
|
String |
getAttribute(String attributeName)
Get attribute for the property.
|
Properties |
getAttributes()
Get all attributes for the property at once.
|
String |
getDescription()
Get description of property.
|
String |
getDescription(Locale locale)
Get localized description of property.
|
int |
getFlags()
Get bit array holding internal system attributes according to PropertyFlags
bit mask fields.
|
IPropertyName |
getPropertyName()
Get immutable name of this property.
|
int |
hashCode()
Get hash code of this object.
|
boolean |
isHidden()
Returns true if this property is hidden.
|
boolean |
isLive()
Returns true if this property is live.
|
boolean |
isReadOnly()
Returns true if this property is read only.
|
boolean |
isRequired()
Returns true if this property is required.
|
String |
toString()
Get string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetType, getValueAsString, getValuesAsStrings, isMultiValueprotected IPropertyName name
protected Properties attributes
protected int flags
protected transient ResourceBundles resourceBundles
protected AbstractProperty(IPropertyName name, Properties attributes, int flags, ResourceBundles resourceBundles) throws ResourceException
name - property nameattributes - property attributesflags - bit array holding internal system attributes according to
PropertyFlags bit mask fieldsresourceBundles - resource bundles containing (localized) property
descriptionResourceException - when the property creation failedpublic IPropertyName getPropertyName()
getPropertyName in interface IPropertypublic boolean areFlagsSet()
areFlagsSet in interface IPropertypublic int getFlags()
public boolean isRequired()
isRequired in interface IPropertypublic boolean isLive()
public boolean isReadOnly()
isReadOnly in interface IPropertypublic boolean isHidden()
public String getDescription()
getDescription in interface IPropertypublic String getDescription(Locale locale)
getDescription in interface IPropertylocale - locale to be used for localizationpublic Properties getAttributes() throws ResourceException
getAttributes in interface IPropertyResourceException - when the property is invalidpublic String getAttribute(String attributeName) throws ResourceException
getAttribute in interface IPropertyattributeName - attribute nameResourceException - when the attribute name or the property is
invalidpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class Objectobj - object to compare this object withObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice