public interface ClassInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
void |
checkPropertyDefinition(ClipboardPage aPropDef)
Edits the contents of the Rule-Obj-Property instance passed to it.
|
void |
checkPropertyKeys(ClipboardPage aPropDef)
Validates the contents of the Rule-Obj-Property instance passed to it.
|
java.lang.String |
fromDefinition(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(java.lang.String aPropertyName,
java.lang.String aReference)
Fetch the value of the named property from the named Rule-Obj-Property instance
for the property that this instance contains.
|
java.lang.String |
getClassName()
Return the name of the class represented by this instance of ClassInfo.
|
ImmutablePropertyAliasInfo |
getImmutablePropertyAliasInfo(java.lang.String aAliasName)
Factory method for ImmutablePropertyAliasInfo Objects that describe the property
aliases defined for this class.
|
ImmutablePropertyInfo |
getImmutablePropertyInfo(java.lang.String aName)
Factory method for ImmutablePropertyInfo Objects that describe the properties
defined for this class.
|
ImmutablePropertyInfo |
getImmutableTerminalPropertyInfo(java.lang.String aRelativeReference)
Factory method for ImmutablePropertyInfo Objects that describe the properties
defined for this class.
|
ImmutablePropertyInfo |
getImmutableTerminalPropertyInfo(java.lang.String aRelativeReference,
boolean aReferenceMayContainWildCards)
Factory method for ImmutablePropertyInfo Objects that describe the properties
defined for this class.
|
java.lang.String |
getJavaWrapperClass()
Get the name of the Java class used to back up this class's Java Properties.
|
java.lang.String |
getParentClassName()
Return the name of the parent of the class represented by this instance of ClassInfo.
|
PropertyInfo |
getPropertyInfo(java.lang.String aName)
Deprecated.
|
java.lang.String |
getRuleSet() |
java.lang.String |
getTenantId()
Return tenantId of the class definition.
|
boolean |
isAncestorOf(ClipboardPage aPage)
Test to see if this is an ancestor of the class of aPage.
|
boolean |
isAncestorOf(java.lang.String aClassName)
Test to see if this is an ancestor of a class named aClassName.
|
boolean |
isChildOf(ClipboardPage aPage)
Test to see if this represents a child of a class of aPage.
|
boolean |
isChildOf(java.lang.String aClassName)
Test to see if this represents a child of a class named aClassName.
|
boolean |
isClassless()
Is the page this ClassInfo was built for a classless page?
|
boolean |
isConcrete() |
boolean |
isDefinitionOf(ClipboardPage aPage)
Test the class of the aPage parameter to see if it matches this objects' class,
|
boolean |
isDefinitionOf(java.lang.String aClassName)
Test the aClassName parameter to see if it matches this objects' class.
|
boolean |
isFinal() |
boolean |
isParentOf(ClipboardPage aPage)
Test to see if this represents the parent of the class of aPage.
|
boolean |
isParentOf(java.lang.String aClassName)
Test to see if this represents the parent of a class named aClassName.
|
boolean |
isUndefined()
Is the page this ClassInfo was built for representing an undefined class?
|
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 aProperty,
boolean aForceExpand)
Exactly like
validate , but works with properties. |
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
boolean isUndefined()
true
if the page had a pxObjClass property with an
unknown class name as its' value.
false
otherwise.boolean isClassless()
true
if the had an empty or no pxObjClass property.
false
otherwise.java.lang.String fromDefinition(java.lang.String aReference)
aReference
- a reference to a property on the Rule-Obj-Class page.java.lang.String fromDefinition(java.lang.String aPropertyName, java.lang.String aReference)
aPropertyName
- aReference
- a reference to a property on the Rule-Obj-Class page.java.lang.String getJavaWrapperClass()
boolean isDefinitionOf(java.lang.String aClassName)
aClassName
- Name of the class to test for equality,true
if this class represents the class named in the parameter aClassName,
false
otherwiseboolean isDefinitionOf(ClipboardPage aPage)
aPage
- Instance of a ClipboardPage containing the class to test for equality,true
if this class represents the same class as aPage,
false
otherwiseboolean isAncestorOf(java.lang.String aClassName)
aClassName
- Name of the class to test for equalitytrue
if the class named aClassName is defined, and if
this class is an ancestor of aClassName
;
false
otherwise
boolean isAncestorOf(ClipboardPage aPage)
aPage
- Instance of a ClipboardPage containing the class to test for equality,true
if this is an ancestor of this aPage instance,
false
otherwiseboolean isChildOf(java.lang.String aClassName)
aClassName
- Name of the class to test for equalitytrue
if this is a child class of the class named in aClassName,
false
otherwiseboolean isChildOf(ClipboardPage aPage)
aPage
- Instance of a ClipboardPage containing the class to test for equality,true
if this is a child class of this aPage instance,
false
otherwiseboolean isParentOf(java.lang.String aClassName)
aClassName
- Name of the class to test for equalitytrue
if this is the parent class of the class named aClassName,
false
otherwiseboolean isParentOf(ClipboardPage aPage)
aPage
- Instance of a ClipboardPage containing the class to test for equality,true
if this is the parent class of this aPage instance,
false
otherwiseboolean isFinal()
true
if this class has children,
false
otherwiseboolean isConcrete()
true
if this class can have instances,
false
otherwisejava.lang.String getClassName()
java.lang.String getParentClassName()
PropertyInfo getPropertyInfo(java.lang.String aName)
aName
- a Property name that is defined on this page.ImmutablePropertyInfo getImmutableTerminalPropertyInfo(java.lang.String aRelativeReference)
aRelativeReference
- a complex relative reference name that is defined on this page.ImmutablePropertyInfo getImmutableTerminalPropertyInfo(java.lang.String aRelativeReference, boolean aReferenceMayContainWildCards)
aRelativeReference
- a complex relative reference name that is defined on this page.aReferenceMayContainWildCards
- should aRelativeReference
be allowed to contain wildcards?ImmutablePropertyInfo getImmutablePropertyInfo(java.lang.String aName)
aName
- a Property name that is defined on this page.ImmutablePropertyAliasInfo getImmutablePropertyAliasInfo(java.lang.String aAliasName)
aAliasName
- a Property Alias name that is defined on this page.boolean validate(ClipboardPage aPage, boolean aForceExpand)
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 aProperty, boolean aForceExpand)
validate
, but works with properties.
The validation is exactly the same as the validation of a whole page, but is restricted to the
one property and its' embedded pages.aProperty
- Reference to a property on a page that needs to be validated individually.
The class used for context is the class of the page that contains this
property.aForceExpand
- - 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 aProperty. If the enclosing page is valid a message is added
indicating the specifics of the errors. If there is alread a message
on the page and @link #isValid is already false no additional messages
are added to the enclosing page.void checkPropertyDefinition(ClipboardPage aPropDef)
aPropDef
- the instances of the Rule-Obj-Property to validate.void checkPropertyKeys(ClipboardPage aPropDef)
aPropDef
- the instances of the Rule-Obj-Property to validate.java.lang.String getRuleSet()
java.lang.String getTenantId()
Copyright © 2015 Pegasystems Inc. All Rights Reserved.