|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Structure information for a context attribute.
The information contained herein either has been declared at design time (for a statically declared attribute) or has been provided at runtime (dynamically declared attribute).
Methods in IWDNodeInfo can be used to retrieve
or dynamically create instances
of this interface.
DO NOT EXTEND THIS TYPE. It won't work.
| Method Summary | |
IWDAttributeInfo |
getDataAttribute()
Returns the AttributeInfo of the attribute this attribute is mapped to or null if this attribute is unmapped. |
IDataType |
getDataType()
Returns the data type of the attribute. |
ISimpleTypeModifiable |
getModifiableSimpleType()
Returns a modifiable version of the data type of the attribute. |
java.lang.String |
getName()
Returns the name of the attribute. |
IWDNodeInfo |
getNode()
Returns the node info, this attribute belongs to. |
java.lang.String |
getOriginName()
Returns the origin's name which is the name of the attribute either in the origin node or in the model object. |
ISimpleType |
getSimpleType()
Returns the data type of the attribute. |
boolean |
hasSimpleType()
Returns whether the attribute contains an ISimpleType. |
boolean |
isDeclared()
Returns whether this attribute has been declared at design time. |
boolean |
isReadOnly()
Checks whether this attribute is read only for clients. |
void |
setR3NormalizingFormattingService(boolean formatting)
Set a special formatting service for currencies when working with an R/3 system. |
| Method Detail |
public java.lang.String getName()
public IWDNodeInfo getNode()
public java.lang.String getOriginName()
null for unmapped
value nodes.public IDataType getDataType()
null: If you map into a component that you create manually
and that component has not been created yet. In this case the attribute
does not yet know the type and returns null.public boolean hasSimpleType()
true, if the attribute contains an ISimpleType.public ISimpleType getSimpleType()
ContextException - if the IWDAttributeInfo does not contain an
ISimpleType, but another IDataType.getDataType()public ISimpleTypeModifiable getModifiableSimpleType()
A modifiable data type can only be queried from a non-mapped attribute. A mapped attribute throws a ContextException. The reason for this is that you always should be aware of the effects of changing the attribute type. This change affects the complete mapping chain, even across component boundaries. So you are only allowed to modify the data source.
ContextException - if the IWDAttributeInfo does not contain an
ISimpleType, but another IDataType or if the attribute is mapped.public IWDAttributeInfo getDataAttribute()
null if this attribute is unmapped.public boolean isReadOnly()
Note: if an attribute is read-only for clients, it might or might not be writable for applications. Normally all attributes are writable for applications, but if a context attribute is mapped to a model class property and if that model class property is read-only or if the attribute is calculated and no setter is declared, then the attribute is read-only for applications, too.
public boolean isDeclared()
public void setR3NormalizingFormattingService(boolean formatting)
If you are not working with Adaptive RFC or if you are only usings BAPIs, you will not need this method. See the documentation of the Java Dictionary for more details.
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||