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 FormModifier 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, wait
getType, getValueAsString, getValuesAsStrings, isMultiValue
protected 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 IProperty
public boolean areFlagsSet()
areFlagsSet
in interface IProperty
public int getFlags()
public boolean isRequired()
isRequired
in interface IProperty
public boolean isLive()
public boolean isReadOnly()
isReadOnly
in interface IProperty
public boolean isHidden()
public String getDescription()
getDescription
in interface IProperty
public String getDescription(Locale locale)
getDescription
in interface IProperty
locale
- locale to be used for localizationpublic Properties getAttributes() throws ResourceException
getAttributes
in interface IProperty
ResourceException
- when the property is invalidpublic String getAttribute(String attributeName) throws ResourceException
getAttribute
in interface IProperty
attributeName
- attribute nameResourceException
- when the attribute name or the property is
invalidpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
obj
- object to compare this object withObject.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.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 2018 SAP AG Complete Copyright Notice