|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.orion.sdata.servlet.accpac.JiBXConfigurationAbstractResource
com.sage.orion.sdata.servlet.accpac.ReferencedKeyField
public class ReferencedKeyField
The ReferencedKeyField
is a simple structure used in parsing the
ViewResourceMapping files.
A referenced key field defines which field of 'this' Resource
is to
be used to key into 'that' ReferencedResource
. Each field of this
resource maps to the corresponding field in the identifying key of the
referenced resource.
Frequently there will only be one such field, but there may sometimes be more, and they will map in the order they are listed.
In addition for some views it is not actually a field that provides the value; it is a static value.
Like the other similar classes, an instance of this class is designed to be built by the JiBX parser and then queried elsewhere.
Constructor Summary | |
---|---|
ReferencedKeyField()
constructs an instance of the ReferencedKeyField class. |
|
ReferencedKeyField(java.lang.String viewFieldName)
constructs an instance of the ReferencedKeyField class, using the
specified name |
Method Summary | |
---|---|
java.lang.String |
getFixedValue()
gets the fixed value. |
java.lang.String |
getViewFieldName()
gets the internal name. |
boolean |
isUsingFixedValue()
returns whether the field is using a fixed value or not. |
protected void |
onEndBuilding()
This will be called at the end of the building phase. |
void |
setFixedValue(java.lang.String value)
sets the fixed value. |
void |
setViewFieldName(java.lang.String name)
sets the internal name. |
Methods inherited from class com.sage.orion.sdata.servlet.accpac.JiBXConfigurationAbstractResource |
---|
addConfigurationError, endBuilding, ensureStillBuilding, getConfigurationErrors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReferencedKeyField()
ReferencedKeyField
class.
public ReferencedKeyField(java.lang.String viewFieldName)
ReferencedKeyField
class, using the
specified name
viewFieldName
- the internal name of the field in this resource which maps to
the corresponding key field in the referenced resourceMethod Detail |
---|
public java.lang.String getFixedValue()
public java.lang.String getViewFieldName()
If the field is using a fixed value (isUsingFixedValue()
returns
true) this will return a null value.
public boolean isUsingFixedValue()
The caller should check this before deciding which getter to call.
getViewFieldName()
public void setViewFieldName(java.lang.String name)
name
- the internal Accpac name of the field to be mapped to a key
field in the referenced resourcepublic void setFixedValue(java.lang.String value)
If a fixed value is provided a name must not be provided using
setViewFieldName(String)
value
- the internal Accpac name of the field to be mapped to a key
field in the referenced resourceprotected void onEndBuilding()
JiBXConfigurationAbstractResource.addConfigurationError(java.lang.String)
during
this call.
onEndBuilding
in class JiBXConfigurationAbstractResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |