|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dictionary
DictionaryImpl contains the cache of ClassInfoImpl objects that have been accessed by this thread since this DictionaryImpl was created. By creating a new DictionaryImpl you clear that cache and begin collecting information again. Use the Dictionary object that you get from your thread's PRThread.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static int |
PROMPTLIST_INDEX_LOCALIZEDVALUE
Localized value field for Prompt List entries (pyLocalizedValue) |
static int |
PROMPTLIST_INDEX_STANDARDVALUE
Value field for Prompt List entries (pyStandardValue) |
static int |
TABLEEDITINFO_INDEX_ENTRYCODE
pzEntryCode |
static int |
TABLEEDITINFO_INDEX_FIELDCLASS
pyFieldClass |
static int |
TABLEEDITINFO_INDEX_FIELDNAME
pyFieldName |
static int |
TABLEEDITINFO_INDEX_TABLECLASS
pyTableClass |
static int |
TABLEEDITINFO_INDEX_TABLEOPTION
pyTableOption |
static int |
TABLEEDITINFO_INDEX_TABLESELECTOR
pyTableSelector |
static int |
TABLEEDITINFO_INDEX_USEFORLOCALIZATION
pyUseForLocalization |
static java.lang.String |
VERSION
|
Method Summary | |
---|---|
java.lang.String |
fromDefinition(ClipboardPage aClassInstance,
java.lang.String aReference)
fetch the value of the named property from the Rule-Obj-Class instance for the class that this instance contains. |
java.lang.String |
fromDefinition(ClipboardProperty aProperty,
java.lang.String aReference)
fetch the value of the named property from the Rule-Obj-Property instance for this property. |
java.lang.String |
fromDefinition(java.lang.String aClassName,
java.lang.String aReference)
fetch the value of the named property from the Rule-Obj-Class instance for the class in aClassName. |
java.lang.String |
fromDefinition(java.lang.String aClassName,
java.lang.String aPropertyName,
java.lang.String aReference)
fetch the value of the named property from the Rule-Obj-Property instance for the property that is defined by this class and property name. |
java.lang.String |
getApplet(java.lang.String aClassName)
Returns the value of pyApplet for this Rule-Obj-Class |
java.lang.String |
getAppletHarness(java.lang.String aClassName)
Returns the value of pyAppletHarness for this Rule-Obj-Class |
ClassInfo |
getClassInfo(java.lang.String aClassName)
fetches the informational object for classes. |
java.lang.String |
getClassName(java.lang.String aRootClass,
java.lang.String aReference)
Given a class and a page reference relative to that class, return the class of the referenced embedded page. |
java.lang.String |
getClassName(java.lang.String aRootClass,
java.lang.String aReference,
boolean aAllowEmptySubscripts)
Given a class and a page reference relative to that class, return the class of the referenced embedded page. |
java.lang.String |
getExpectedSize(java.lang.String aClassName,
java.lang.String aPropertyName)
Get the Expected Size for a property (pyExpectedSize). |
java.lang.String |
getFormType(java.lang.String aClassName)
Returns the value of pyFormType for this Rule-Obj-Class |
java.lang.String |
getGatewayClass(java.lang.String aClassName,
java.lang.String aPropertyName)
Returns the gateway class for a Rule-Obj-Property |
java.util.Map |
getGatewayPropertyMap(java.lang.String aClassName,
java.lang.String aPropertyName)
Returns a map containing key value for source and target properties for a gateway property |
ImmutablePropertyInfo |
getImmutablePropertyInfo(java.lang.String aClassName,
java.lang.String aPropertyName)
Get the ImmutablePropertyInfo object for the named property. |
java.util.Set |
getJavaPropertyNames(java.lang.String aClassName)
Return a list of all properties in the given class that are of mode Java Property or Java Property List. |
java.lang.String[] |
getLocalList(java.lang.String aClassName,
java.lang.String aPropertyName)
Gets the local list information for this property. |
java.lang.String |
getModeName(char aMode)
Translates a Property Mode code (like PropertyInfo.MODE_STRING) to its English string. |
java.lang.String[][] |
getPromptList(java.lang.String aClassName,
java.lang.String aPropertyName)
Gets the prompt list information for this property. |
java.lang.String |
getPropertyClass(java.lang.String aClassName,
java.lang.String aPropertyName)
Get the class that the requested property is actually defined on. |
java.lang.String |
getPropertyLabel(java.lang.String aClassName,
java.lang.String aPropertyName)
Get the label of the requested property. |
ClipboardProperty |
getPropertyViaQualifier(ClipboardProperty aProperty,
java.lang.String aQualifierName)
Retrieves the ClipboardProperty referred to by the value of the named qualifier. |
java.lang.String |
getQualifier(ClipboardProperty aProperty,
java.lang.String aQualifierName)
Returns the value of the named qualifier, if present, from the Rule-Obj-Property instance that defines this property. |
java.lang.String |
getQualifier(java.lang.String aClassName,
java.lang.String aPropertyName,
java.lang.String aQualifierName)
Returns the value of the named qualifier, if present, from the Rule-Obj-Property instance that defines this property. |
java.lang.String |
getRuleSet(java.lang.String aClassName,
java.lang.String aPropertyName)
Get the ruleset name that the requested property is actually defined on. |
java.lang.String |
getRuleSetVersion(java.lang.String aClassName,
java.lang.String aPropertyName)
Get the ruleset version that the requested property is actually defined on. |
java.lang.String[] |
getTableEditInfo(java.lang.String aClassName,
java.lang.String aPropertyName)
Gets basic table edit information for this property. |
java.lang.String |
getTypeName(char aType)
Translates a Property Type code (like PropertyInfo.TYPE_TEXT) to its English string. |
boolean |
hasQualifier(ClipboardProperty aProperty,
java.lang.String aQualifierName)
Test for the existance of a qualifier for a particular property. |
boolean |
hasQualifier(java.lang.String aClassName,
java.lang.String aPropertyName,
java.lang.String aQualifierName)
Test for the existance of a qualifier for a particular property. |
boolean |
hasRuntimeQualifier(ClipboardProperty aProperty,
java.lang.String aQualifierName)
Test for the existance of a run-time qualifier definition for a particular property. |
boolean |
isReference(java.lang.String aClassName,
java.lang.String aPropertyName)
Is this property defined as a Reference property? |
boolean |
isThereAnyLinkedPropertyInThisPropertyReference(java.lang.String aClassName,
java.lang.String aPropRef)
|
void |
reset()
Clears the internal cache of classes and properties as looked up via rule resolution with the qualifiers that were in effect at that time. |
boolean |
setPropertyViaQualifier(ClipboardProperty aProperty,
java.lang.String aQualifierName,
ClipboardProperty aValue)
Sets the ClipboardProperty referred to by the value of the named qualifier to the value provided. |
boolean |
setPropertyViaQualifier(ClipboardProperty aProperty,
java.lang.String aQualifierName,
java.lang.String aValue)
Sets the ClipboardProperty referred to by the value of the named qualifier to the value provided. |
boolean |
usesQualifiedRuleResolution(java.lang.String aClassName)
Does this Rule-Obj-Class use circumstance qualified rule resolution (allows selection of rules based on property values)? |
boolean |
validate(ClipboardPage aPage,
boolean aForceExpand)
Examine an instance of a ClipboardPage and validate the contents against the definition of the class (indicated in the pxObjClass on aPage). |
boolean |
validate(ClipboardProperty aProp)
Examine an instance of a ClipboardProperty and validate the contents against its definition (combined with the pxObjClass on its parent page). |
boolean |
validate(ClipboardProperty aProp,
boolean aUseDictionary)
examine an instance of a ClipboardProperty and validate the contents against its definition (combined with the pxObjClass on its parent page). |
java.lang.String |
validate(java.lang.String aClassName,
java.lang.String aPropertyName,
java.lang.String aValue)
Examine a string value and validate it against the named property's definition. |
boolean |
validateReference(java.lang.String aClassName,
java.lang.String aReference)
Takes a property reference and validates it against the specified class definition. |
boolean |
validateReferenceWithCaseSensitivity(java.lang.String aClassName,
java.lang.String aReference)
Takes a property reference and validates it against the specified class definition. |
boolean |
validateReferenceWithWildcards(java.lang.String aClassName,
java.lang.String aReference)
Takes a reference (that may contain wildcards) and validates it against the specified class. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
static final int TABLEEDITINFO_INDEX_ENTRYCODE
static final int TABLEEDITINFO_INDEX_TABLEOPTION
static final int TABLEEDITINFO_INDEX_FIELDNAME
static final int TABLEEDITINFO_INDEX_FIELDCLASS
static final int TABLEEDITINFO_INDEX_TABLESELECTOR
static final int TABLEEDITINFO_INDEX_USEFORLOCALIZATION
static final int TABLEEDITINFO_INDEX_TABLECLASS
static final int PROMPTLIST_INDEX_STANDARDVALUE
static final int PROMPTLIST_INDEX_LOCALIZEDVALUE
Method Detail |
---|
ImmutablePropertyInfo getImmutablePropertyInfo(java.lang.String aClassName, java.lang.String aPropertyName)
ImmutablePropertyInfo
object for the named property.
aClassName
- class containing the propertyaPropertyName
- the property to retrieve
The result for property reference is provided for the first property name from a reference i.e leading page names are ignored. Subscripts are stripped. Examples: "page.property" ==> "property", "property" ==> "property", ".property(3)" ==> "property"
null
if notClassInfo getClassInfo(java.lang.String aClassName)
aClassName
-
ClassInfo
java.lang.String[][] getPromptList(java.lang.String aClassName, java.lang.String aPropertyName)
aPropertyName
- the property to retrieveaClassName
- class containing the property
PROMPTLIST_INDEX_LOCALIZEDVALUE
or PROMPTLIST_INDEX_STANDARDVALUE
. Can be null if there is no prompt list defined for this property.java.lang.String[] getLocalList(java.lang.String aClassName, java.lang.String aPropertyName)
aPropertyName
- the property to retrieveaClassName
- class containing the property
java.lang.String[] getTableEditInfo(java.lang.String aClassName, java.lang.String aPropertyName)
getPromptList(String, String)
to retrieve the prompt list values for a
property.
aPropertyName
- the property to retrieveaClassName
- class containing the property
TABLEEDITINFO_INDEX_ENTRYCODE
,
TABLEEDITINFO_INDEX_FIELDCLASS
, TABLEEDITINFO_INDEX_FIELDNAME
, TABLEEDITINFO_INDEX_TABLECLASS
,
TABLEEDITINFO_INDEX_TABLEOPTION
, TABLEEDITINFO_INDEX_TABLESELECTOR
, TABLEEDITINFO_INDEX_USEFORLOCALIZATION
. Individual
values can be null if there's no such value in the property definition (although the array itself will never be null if the property is defined).void reset()
java.lang.String fromDefinition(ClipboardProperty aProperty, java.lang.String aReference)
aProperty
- A ClipboardProperty which determines which Rule-Obj-Class
(from the parent page of this property) and which Rule-Obj-Property instance we
lookup aReference within.aReference
- A reference to a property on the Rule-Obj-Property page.
java.lang.String fromDefinition(java.lang.String aClassName, java.lang.String aPropertyName, java.lang.String aReference)
aClassName
- class in which to evaluate the property in aPropertyNameaPropertyName
- name of the Rule-Obj-Property instance in class aClassNameaReference
- a reference to a property in the Rule-Obj-Property
java.lang.String fromDefinition(ClipboardPage aClassInstance, java.lang.String aReference)
aClassInstance
- A ClipboardPage containing a class instance which determines
which Rule-Obj-Class instance we lookup aReference within.aReference
- A reference to a property on the Rule-Obj-Class page.
java.lang.String fromDefinition(java.lang.String aClassName, java.lang.String aReference)
aClassName
- class in which to evaluate the property in aPropertyName.
which Rule-Obj-Class instance we lookup aReference within.aReference
- A reference to a property on the Rule-Obj-Class page.
boolean hasQualifier(ClipboardProperty aProperty, java.lang.String aQualifierName)
aProperty
- ClipboardProperty
instance for which the
Qualifier is desiredaQualifierName
- name of Qualifier that might appear in the
Rule-Obj-Property instance.
true
if this named qualifier is defined for this property
false
otherwiseboolean hasQualifier(java.lang.String aClassName, java.lang.String aPropertyName, java.lang.String aQualifierName)
aClassName
- class containing the propertyaPropertyName
- property that may contain qualifieraQualifierName
- name of Qualifier that might appear in the
Rule-Obj-Property instance.
true
if this named qualifier is defined for this property
false
otherwiseboolean hasRuntimeQualifier(ClipboardProperty aProperty, java.lang.String aQualifierName)
aProperty
- ClipboardProperty
instance for which the
Qualifier is desiredaQualifierName
- name of Qualifier that might appear in the
Rule-Obj-Property instance.
true
if this named qualifier is defined for this property
false
otherwisejava.lang.String getQualifier(ClipboardProperty aProperty, java.lang.String aQualifierName)
aProperty
- ClipboardProperty
instance for which the
Qualifier value is desiredaQualifierName
- name of Qualifier that might appear in the
Rule-Obj-Property instance.
String
if it is
not included in this definition
PRRuntimeException
- if the qualifier is defined as a run-time qualifierjava.lang.String getQualifier(java.lang.String aClassName, java.lang.String aPropertyName, java.lang.String aQualifierName)
aClassName
- class in which to evaluate the named propertyaPropertyName
- name of the property for which the Qualifier value
is wanted.aQualifierName
- name of Qualifier that might appear in the
Rule-Obj-Property instance.
String
if it is
not included in this definition
PRRuntimeException
- if the qualifier is defined as a run-time qualifierjava.lang.String getExpectedSize(java.lang.String aClassName, java.lang.String aPropertyName)
aClassName
- class of the page containing the propertyaPropertyName
- name of the property (note that for a list or group element, the name of the list or group property should be provided)
ClipboardProperty getPropertyViaQualifier(ClipboardProperty aProperty, java.lang.String aQualifierName)
aProperty
- property contianing the qualifieraQualifierName
- name of the qualifier containing the refernce.
ClipboardProperty
referred to
if it exists, null
if that property does not exist.
PRRuntimeException
- if the qualifier is defined as a run-time qualifierboolean setPropertyViaQualifier(ClipboardProperty aProperty, java.lang.String aQualifierName, java.lang.String aValue)
aProperty
- property contianing the qualifieraQualifierName
- name of the qualifier containing the refernce.aValue
- String
value to place into the referred-to property
true
if the property was set
false
otherwise
PRRuntimeException
- if the qualifier is defined as a run-time qualifierboolean setPropertyViaQualifier(ClipboardProperty aProperty, java.lang.String aQualifierName, ClipboardProperty aValue)
aProperty
- property contianing the qualifieraQualifierName
- name of the qualifier containing the refernce.aValue
- ClipboardProperty
copied over the referred-to property
true
if the property was set
false
otherwise
PRRuntimeException
- if the qualifier is defined as a run-time qualifierboolean validate(ClipboardPage aPage, boolean aForceExpand)
This cannot be called on a read-only page since messages are added to the page describing
the errors found and the page status is updated. If a read only page is
used the exception ReadOnlyException
is thrown by
ClipboardPage.addMessage(String)
.
Content of pages which is still embedded in a stream can be considered valid since it came
from the database. This can be selected using the aForceExpand
parameter.
aPage
- - containing a pageaForceExpand
- - should embedded pages be expanded from their streams? (lazy page evaluation)
true
if the page is well-formed with values that are within constraints,
false
otherwise. This also implies that error messages have been added
to ClipboardPage 'aPage' indicating the specifics of the errors.boolean validate(ClipboardProperty aProp)
ReadOnlyException
is thrown by
ClipboardPage.addMessage(String)
.
aProp
- a property to validate
true
if the property is well-formed with values that are within constraints,
false
otherwise. This also implies that error messages have been added
to ClipboardProperty 'aProp' indicating the specifics of the errors.java.lang.String validate(java.lang.String aClassName, java.lang.String aPropertyName, java.lang.String aValue)
aClassName
- name of the class containing the the property aPropertyNameaPropertyName
- name of property whose definition should be used (any subscripts are truncated)aValue
- value to be validated
null
if the value is valid or the class or property is
undefined, the property is not a String, String Group, String List, Java Property, or Java Property List;
otherwise a String containing the validation error messages.boolean validate(ClipboardProperty aProp, boolean aUseDictionary)
ReadOnlyException
is thrown by
ClipboardPage.addMessage(String)
.
aProp
- a property to validateaUseDictionary
- true
to use the dictionary definition of this property for validation.
false
to only use the attributes present within the property itself for validation. This option
is useful to do cheap validation of a property that already has
known attributes applied to it. Table and Java Edits are not applied in this scenario.
true
if the property is well-formed with values that are within constraints,
false
otherwise. This also implies that error messages have been added
to ClipboardProperty 'aProp' indicating the specifics of the errors.boolean validateReference(java.lang.String aClassName, java.lang.String aReference)
aClassName
- aReference
-
true
if the reference is valid for this class,
false
otherwise.boolean validateReferenceWithCaseSensitivity(java.lang.String aClassName, java.lang.String aReference)
aClassName
- aReference
-
true
if the reference is valid for this class,
false
otherwise.boolean validateReferenceWithWildcards(java.lang.String aClassName, java.lang.String aReference)
aClassName
- the name of the classaReference
- the reference--it may contain wildcards
true
if the reference is valid for this definition,
false
otherwise.
InvalidReferenceException
- if the
reference is not validjava.lang.String getTypeName(char aType)
aType
- type to be translated
java.lang.String getModeName(char aMode)
aMode
- mode to be translated
java.lang.String getClassName(java.lang.String aRootClass, java.lang.String aReference)
aRootClass
- class to use as base for referenceaReference
- reference to a page property relative to aRootClass
java.lang.String getClassName(java.lang.String aRootClass, java.lang.String aReference, boolean aAllowEmptySubscripts)
aRootClass
- class to use as base for referenceaReference
- reference to a page property relative to aRootClassaAllowEmptySubscripts
- Allow empty subscripts in the reference
java.lang.String getRuleSet(java.lang.String aClassName, java.lang.String aPropertyName)
aPropertyName
- the property to retrieveaClassName
- class containing the property
java.lang.String getRuleSetVersion(java.lang.String aClassName, java.lang.String aPropertyName)
aPropertyName
- the property to retrieveaClassName
- class containing the property
java.lang.String getPropertyClass(java.lang.String aClassName, java.lang.String aPropertyName)
aPropertyName
- the property to retrieveaClassName
- class containing the property
java.lang.String getPropertyLabel(java.lang.String aClassName, java.lang.String aPropertyName)
aPropertyName
- the property to retrieveaClassName
- class containing the property
java.util.Set getJavaPropertyNames(java.lang.String aClassName)
aClassName
- name of class to inspect
null
if there was no database
access necessary to run the search.boolean isReference(java.lang.String aClassName, java.lang.String aPropertyName)
aClassName
- aPropertyName
-
boolean usesQualifiedRuleResolution(java.lang.String aClassName)
aClassName
- Name of class
java.lang.String getFormType(java.lang.String aClassName)
aClassName
- Name of class
java.lang.String getAppletHarness(java.lang.String aClassName)
aClassName
- Name of class
java.lang.String getApplet(java.lang.String aClassName)
aClassName
- Name of class
java.lang.String getGatewayClass(java.lang.String aClassName, java.lang.String aPropertyName)
aClassName
- Name of pyClassNameaPropertyName
- Name of property
java.util.Map getGatewayPropertyMap(java.lang.String aClassName, java.lang.String aPropertyName)
aClassName
- Name of pyClassNameaPropertyName
- Name of property
boolean isThereAnyLinkedPropertyInThisPropertyReference(java.lang.String aClassName, java.lang.String aPropRef)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |