|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.netweaver.bc.rf.common.property.AbstractProperty
Class implementing a lean property (for less memory consumption), which is
part of the resource and describes certain aspects of it. A property has a
name (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| Field Summary | |
protected java.util.Properties |
attributes
|
protected int |
flags
|
protected IPropertyName |
name
|
protected ResourceBundles |
resourceBundles
|
| Constructor Summary | |
protected |
AbstractProperty(IPropertyName name,
java.util.Properties attributes,
int flags,
ResourceBundles resourceBundles)
Construct property instance based on its internals. |
| Method Summary | |
boolean |
areFlagsSet()
Return true if the internal system attributes are set. |
boolean |
equals(java.lang.Object obj)
Check this and another object for equality. |
java.lang.String |
getAttribute(java.lang.String attributeName)
Get attribute for the property. |
java.util.Properties |
getAttributes()
Get all attributes for the property at once. |
java.lang.String |
getDescription()
Get description of property. |
java.lang.String |
getDescription(java.util.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. |
java.lang.String |
toString()
Get string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sap.netweaver.bc.rf.common.property.IProperty |
getType, getValueAsString, getValuesAsStrings, isMultiValue |
| Field Detail |
protected IPropertyName name
protected java.util.Properties attributes
protected int flags
protected ResourceBundles resourceBundles
| Constructor Detail |
protected AbstractProperty(IPropertyName name,
java.util.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 failed| Method Detail |
public IPropertyName getPropertyName()
getPropertyName in interface IPropertypublic boolean areFlagsSet()
areFlagsSet in interface IPropertypublic int getFlags()
getFlags in interface IPropertypublic boolean isRequired()
isRequired in interface IPropertypublic boolean isLive()
isLive in interface IPropertypublic boolean isReadOnly()
isReadOnly in interface IPropertypublic boolean isHidden()
isHidden in interface IPropertypublic java.lang.String getDescription()
getDescription in interface IPropertypublic java.lang.String getDescription(java.util.Locale locale)
getDescription in interface IPropertylocale - locale to be used for localization
public java.util.Properties getAttributes()
throws ResourceException
getAttributes in interface IPropertyResourceException - when the property is invalid
public java.lang.String getAttribute(java.lang.String attributeName)
throws ResourceException
getAttribute in interface IPropertyattributeName - attribute nameResourceException - when the attribute name or the property is
invalidpublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to compare this object withObject.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||