com.infoengine.object
Class IeConstraintContainer

java.lang.Object
  extended bycom.infoengine.object.IeConstraintContainer
All Implemented Interfaces:
ConstraintContainer, Externalizable, Serializable

public class IeConstraintContainer
extends Object
implements ConstraintContainer, Externalizable

See Also:
Serialized Form

Field Summary
private static String _serialVersion
           
private  DescriptorContainer descriptorContainer
           
private  HashMap disabledMap
           
private  HashMap enabledMap
           
private  HashMap stateMap
           
 
Fields inherited from interface com.ptc.core.meta.container.common.ConstraintContainer
BOTH, DISABLED, ENABLED
 
Constructor Summary
  IeConstraintContainer()
          default no arg constructor to be used for de-serialization
  IeConstraintContainer(HashMap contentMap, HashMap stateMap)
           
protected IeConstraintContainer(HashMap enabledMap, HashMap disabledMap, HashMap stateMap, DescriptorContainer descriptorContainer)
           
 
Method Summary
private  void _put(ConstraintIdentifier constraintId, Object content, State state)
           
 Object clone()
           
 ConstraintContainer cloneWithNewAttributeIdentifier(HashMap oldToNewMap, AssociationIdentifier oldAssociation)
          

Supported API: false
 ConstraintContainer extract(TypeInstanceIdentifier typeInstanceId)
          

Supported API: false
 void filter(ConstraintTypeIdentifier[] constraintIds)
          

Supported API: false
 ConstraintData get(ConstraintIdentifier constraintId)
          Get the content associated with this ConstraintIdentifier.
 ConstraintData[] get(ConstraintTypeIdentifier constraintTypeId)
          Get the content associated with this ConstraintTypeIdentifier.
private static ConstraintBindingRule getCBR(String classname)
           
 ConstraintIdentifier[] getConstraintIdentifiers(AttributeContainer the_attribute_container, AssociationIdentifier the_association_identifier, AttributeTypeIdentifier the_attribute_type_identifier, int enabled_mode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiers(AttributeContainer the_attribute_container, AttributeIdentifier the_attribute_identifier, int enabled_mode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiers(AttributeIdentifier attrId, int enabledMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiers(AttributeTypeIdentifier attrTypeId, int enabledMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiers(ConstraintTypeIdentifier constraintTypeId, int enabledMode)
          Get all ConstraintIdentifiers which match this ConstraintTypeIdentifier from this container.
 ConstraintIdentifier[] getConstraintIdentifiers(int enabledMode)
          Get all ConstraintIdentifiers from this container.
 ConstraintIdentifier[] getConstraintIdentifiersByContext(ApplicationIdentifier context, ConstraintTypeIdentifier constraintTypeId, int enabledMode)
          Get all ConstraintIdentifiers for a given context which match this CriterionTypeIdentifier from this container.
 ConstraintIdentifier[] getConstraintIdentifiersByContext(ApplicationIdentifier context, int enabledMode)
          Get all ConstraintIdentifiers for a given context from this container.
 ConstraintIdentifier[] getConstraintIdentifiersByContextAndState(ApplicationIdentifier context, State state, int enabledMode)
          Get all ConstraintIdentifiers for a given context and State from this container.
 ConstraintIdentifier[] getConstraintIdentifiersByState(ConstraintTypeIdentifier constraintTypeId, State state, int enabledMode)
          Get all ConstraintIdentifiers that match this state from this container.
 ConstraintIdentifier[] getConstraintIdentifiersByState(State state, int enabledMode)
          Get all ConstraintIdentifiers which match this state from this container.
 ConstraintIdentifier[] getConstraintIdentifiersWithChangedContent(ApplicationIdentifier context, int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithChangedContent(int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithDefaultContent(ApplicationIdentifier context, int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithDefaultContent(int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithDeletedContent(ApplicationIdentifier context, int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithDeletedContent(int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithNewContent(ApplicationIdentifier context, int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithNewContent(int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithUnchangedContent(ApplicationIdentifier context, int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithUnchangedContent(int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithUninitializedContent(ApplicationIdentifier context, int enableMode)
          

Supported API: false
 ConstraintIdentifier[] getConstraintIdentifiersWithUninitializedContent(int enableMode)
          

Supported API: false
 ConstraintTypeIdentifier[] getConstraintTypeIdentifiers()
          Get all uniqueConstraintTypeIdentifiers from this container.
 DescriptorContainer getDescriptorContainer()
          Gets the object for the association that plays role: descriptorContainer.
 State getState(ConstraintIdentifier constraintId)
          Returns the state of the content associated with this Constraint Identifier.
 boolean isContentChanged(ConstraintIdentifier constraintId)
          Returns true if the content associated with this Attribute Identifier is considered CHANGED, otherwise it returns false.
 boolean isContentDefault(ConstraintIdentifier constraintId)
          Returns true if the content associated with this Attribute Identifier is considered DEFAULT, otherwise it returns false.
 boolean isContentDeleted(ConstraintIdentifier constraintId)
          Returns true if the content associated with this Attribute Identifier is considered DELETED, otherwise it returns false.
 boolean isContentNew(ConstraintIdentifier constraintId)
          Returns true if the content associated with this Attribute Identifier is considered NEW, otherwise it returns false.
 boolean isContentOfState(ConstraintIdentifier constraintId, State state)
          Returns true if the content associated with this Constraint Identifier is considered to be in the state: "the_state", otherwise it returns false.
 boolean isContentUnchanged(ConstraintIdentifier constraintId)
          Returns true if the content associated with this Attribute Identifier is considered UNCHANGED, otherwise it returns false.
 boolean isContentUninitialized(ConstraintIdentifier constraintId)
          Returns true if the content associated with this Attribute Identifier is considered UNITIALIZED, otherwise it returns false.
 boolean isEnabled(ConstraintIdentifier constraintId)
          

Supported API: false
 void merge(ConstraintContainer container)
          

Supported API: false
 void put(ConstraintIdentifier constraintId, ConstraintData content)
          Store the content and associate it with this ConstraintIdentifier in the container.
 void readExternal(ObjectInput in)
           
 void remove(ConstraintIdentifier constraintId)
          Removes criteria identified by the criterion identifier from the container.
 void setDescriptorContainer(DescriptorContainer descriptorContainer)
          Sets the object for the association that plays role: descriptorContainer.
 void setEnabled(boolean enabled)
          Disables or Enables all criteria defined in the container.
 void setEnabled(boolean enabled, AttributeIdentifier attrId)
          Enables or Disables all criteria defined for the attribute identifier in the container.
 void setEnabled(boolean enabled, ConstraintIdentifier constraintId)
          Enables or Disables criteria identified by the criterion identifier.
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

enabledMap

private HashMap enabledMap

disabledMap

private HashMap disabledMap

stateMap

private HashMap stateMap

descriptorContainer

private DescriptorContainer descriptorContainer

_serialVersion

private static final String _serialVersion
See Also:
Constant Field Values
Constructor Detail

IeConstraintContainer

public IeConstraintContainer()
default no arg constructor to be used for de-serialization


IeConstraintContainer

public IeConstraintContainer(HashMap contentMap,
                             HashMap stateMap)
Parameters:
contentMap -
stateMap -

IeConstraintContainer

protected IeConstraintContainer(HashMap enabledMap,
                                HashMap disabledMap,
                                HashMap stateMap,
                                DescriptorContainer descriptorContainer)
Parameters:
stateMap -
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getConstraintTypeIdentifiers

public ConstraintTypeIdentifier[] getConstraintTypeIdentifiers()
Get all uniqueConstraintTypeIdentifiers from this container.

Specified by:
getConstraintTypeIdentifiers in interface ConstraintContainer
Returns:
ConstraintTypeIdentifier[]

getConstraintIdentifiers

public ConstraintIdentifier[] getConstraintIdentifiers(int enabledMode)
Get all ConstraintIdentifiers from this container.

Specified by:
getConstraintIdentifiers in interface ConstraintContainer
Parameters:
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiers

public ConstraintIdentifier[] getConstraintIdentifiers(AttributeContainer the_attribute_container,
                                                       AttributeIdentifier the_attribute_identifier,
                                                       int enabled_mode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiers in interface ConstraintContainer
Parameters:
the_attribute_container -
the_attribute_identifier -
enabled_mode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiers

public ConstraintIdentifier[] getConstraintIdentifiers(AttributeIdentifier attrId,
                                                       int enabledMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiers in interface ConstraintContainer
Parameters:
attrId -
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiers

public ConstraintIdentifier[] getConstraintIdentifiers(AttributeContainer the_attribute_container,
                                                       AssociationIdentifier the_association_identifier,
                                                       AttributeTypeIdentifier the_attribute_type_identifier,
                                                       int enabled_mode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiers in interface ConstraintContainer
Parameters:
the_attribute_container -
the_association_identifier -
the_attribute_type_identifier -
enabled_mode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiers

public ConstraintIdentifier[] getConstraintIdentifiers(AttributeTypeIdentifier attrTypeId,
                                                       int enabledMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiers in interface ConstraintContainer
Parameters:
attrTypeId -
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiers

public ConstraintIdentifier[] getConstraintIdentifiers(ConstraintTypeIdentifier constraintTypeId,
                                                       int enabledMode)
Get all ConstraintIdentifiers which match this ConstraintTypeIdentifier from this container.

Specified by:
getConstraintIdentifiers in interface ConstraintContainer
Parameters:
constraintTypeId -
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersByContext

public ConstraintIdentifier[] getConstraintIdentifiersByContext(ApplicationIdentifier context,
                                                                int enabledMode)
Get all ConstraintIdentifiers for a given context from this container.

Specified by:
getConstraintIdentifiersByContext in interface ConstraintContainer
Parameters:
context -
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersByContext

public ConstraintIdentifier[] getConstraintIdentifiersByContext(ApplicationIdentifier context,
                                                                ConstraintTypeIdentifier constraintTypeId,
                                                                int enabledMode)
Get all ConstraintIdentifiers for a given context which match this CriterionTypeIdentifier from this container.

Specified by:
getConstraintIdentifiersByContext in interface ConstraintContainer
Parameters:
context -
constraintTypeId -
enabledMode -
Returns:
ConstraintIdentifier[]

get

public ConstraintData get(ConstraintIdentifier constraintId)
Get the content associated with this ConstraintIdentifier. The return type should be a data wrapper for the EnforcementRule data.

Specified by:
get in interface ConstraintContainer
Parameters:
constraintId -
Returns:
ConstraintData

get

public ConstraintData[] get(ConstraintTypeIdentifier constraintTypeId)
Get the content associated with this ConstraintTypeIdentifier. If there's only one CriterionIdentifier (content) associated with this CriterionTypeIdentifier, the return type should be one of the data wrappers for the EnforcementRule data; otherwise, if more than one CriterionIdentifier (content) is associated, the return type should be an array of EnforcementRule data wrappers.

Specified by:
get in interface ConstraintContainer
Parameters:
constraintTypeId -
Returns:
ConstraintData[]

put

public void put(ConstraintIdentifier constraintId,
                ConstraintData content)
         throws IllegalContentException
Store the content and associate it with this ConstraintIdentifier in the container.

Specified by:
put in interface ConstraintContainer
Parameters:
constraintId -
content -
Throws:
IllegalContentException

setEnabled

public void setEnabled(boolean enabled)
Disables or Enables all criteria defined in the container.

Specified by:
setEnabled in interface ConstraintContainer
Parameters:
enabled -

setEnabled

public void setEnabled(boolean enabled,
                       AttributeIdentifier attrId)
Enables or Disables all criteria defined for the attribute identifier in the container.

Specified by:
setEnabled in interface ConstraintContainer
Parameters:
enabled -
attrId -

setEnabled

public void setEnabled(boolean enabled,
                       ConstraintIdentifier constraintId)
Enables or Disables criteria identified by the criterion identifier.

Specified by:
setEnabled in interface ConstraintContainer
Parameters:
enabled -
constraintId -

remove

public void remove(ConstraintIdentifier constraintId)
Removes criteria identified by the criterion identifier from the container.

Specified by:
remove in interface ConstraintContainer
Parameters:
constraintId -

isEnabled

public boolean isEnabled(ConstraintIdentifier constraintId)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
isEnabled in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

getConstraintIdentifiersWithNewContent

public ConstraintIdentifier[] getConstraintIdentifiersWithNewContent(ApplicationIdentifier context,
                                                                     int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithNewContent in interface ConstraintContainer
Parameters:
context -
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithChangedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithChangedContent(ApplicationIdentifier context,
                                                                         int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithChangedContent in interface ConstraintContainer
Parameters:
context -
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithUnchangedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithUnchangedContent(ApplicationIdentifier context,
                                                                           int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithUnchangedContent in interface ConstraintContainer
Parameters:
context -
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithDeletedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithDeletedContent(ApplicationIdentifier context,
                                                                         int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithDeletedContent in interface ConstraintContainer
Parameters:
context -
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithUninitializedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithUninitializedContent(ApplicationIdentifier context,
                                                                               int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithUninitializedContent in interface ConstraintContainer
Parameters:
context -
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithDefaultContent

public ConstraintIdentifier[] getConstraintIdentifiersWithDefaultContent(ApplicationIdentifier context,
                                                                         int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithDefaultContent in interface ConstraintContainer
Parameters:
context -
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithNewContent

public ConstraintIdentifier[] getConstraintIdentifiersWithNewContent(int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithNewContent in interface ConstraintContainer
Parameters:
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithChangedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithChangedContent(int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithChangedContent in interface ConstraintContainer
Parameters:
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithUnchangedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithUnchangedContent(int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithUnchangedContent in interface ConstraintContainer
Parameters:
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithDeletedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithDeletedContent(int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithDeletedContent in interface ConstraintContainer
Parameters:
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithUninitializedContent

public ConstraintIdentifier[] getConstraintIdentifiersWithUninitializedContent(int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithUninitializedContent in interface ConstraintContainer
Parameters:
enableMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersWithDefaultContent

public ConstraintIdentifier[] getConstraintIdentifiersWithDefaultContent(int enableMode)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
getConstraintIdentifiersWithDefaultContent in interface ConstraintContainer
Parameters:
enableMode -
Returns:
ConstraintIdentifier[]

merge

public void merge(ConstraintContainer container)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
merge in interface ConstraintContainer
Parameters:
container -

filter

public void filter(ConstraintTypeIdentifier[] constraintIds)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
filter in interface ConstraintContainer
Parameters:
constraintIds -

getConstraintIdentifiersByState

public ConstraintIdentifier[] getConstraintIdentifiersByState(State state,
                                                              int enabledMode)
Get all ConstraintIdentifiers which match this state from this container.

Specified by:
getConstraintIdentifiersByState in interface ConstraintContainer
Parameters:
state -
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersByState

public ConstraintIdentifier[] getConstraintIdentifiersByState(ConstraintTypeIdentifier constraintTypeId,
                                                              State state,
                                                              int enabledMode)
Get all ConstraintIdentifiers that match this state from this container.

Specified by:
getConstraintIdentifiersByState in interface ConstraintContainer
Parameters:
constraintTypeId -
state -
enabledMode -
Returns:
ConstraintIdentifier[]

getConstraintIdentifiersByContextAndState

public ConstraintIdentifier[] getConstraintIdentifiersByContextAndState(ApplicationIdentifier context,
                                                                        State state,
                                                                        int enabledMode)
Get all ConstraintIdentifiers for a given context and State from this container.

Specified by:
getConstraintIdentifiersByContextAndState in interface ConstraintContainer
Parameters:
context -
state -
enabledMode -
Returns:
ConstraintIdentifier[]

isContentNew

public boolean isContentNew(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered NEW, otherwise it returns false.

Specified by:
isContentNew in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

isContentChanged

public boolean isContentChanged(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered CHANGED, otherwise it returns false.

Specified by:
isContentChanged in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

isContentUnchanged

public boolean isContentUnchanged(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered UNCHANGED, otherwise it returns false.

Specified by:
isContentUnchanged in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

isContentDeleted

public boolean isContentDeleted(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered DELETED, otherwise it returns false.

Specified by:
isContentDeleted in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

isContentUninitialized

public boolean isContentUninitialized(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered UNITIALIZED, otherwise it returns false.

Specified by:
isContentUninitialized in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

isContentDefault

public boolean isContentDefault(ConstraintIdentifier constraintId)
Returns true if the content associated with this Attribute Identifier is considered DEFAULT, otherwise it returns false.

Specified by:
isContentDefault in interface ConstraintContainer
Parameters:
constraintId -
Returns:
boolean

isContentOfState

public boolean isContentOfState(ConstraintIdentifier constraintId,
                                State state)
Returns true if the content associated with this Constraint Identifier is considered to be in the state: "the_state", otherwise it returns false.

Specified by:
isContentOfState in interface ConstraintContainer
Parameters:
constraintId -
state -
Returns:
boolean

getState

public State getState(ConstraintIdentifier constraintId)
Returns the state of the content associated with this Constraint Identifier.

Specified by:
getState in interface ConstraintContainer
Parameters:
constraintId -
Returns:
State

cloneWithNewAttributeIdentifier

public ConstraintContainer cloneWithNewAttributeIdentifier(HashMap oldToNewMap,
                                                           AssociationIdentifier oldAssociation)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
cloneWithNewAttributeIdentifier in interface ConstraintContainer
Parameters:
oldToNewMap -
oldAssociation -
Returns:
ConstraintContainer

extract

public ConstraintContainer extract(TypeInstanceIdentifier typeInstanceId)
Description copied from interface: ConstraintContainer


Supported API: false

Specified by:
extract in interface ConstraintContainer
Parameters:
typeInstanceId -
Returns:
ConstraintContainer

getDescriptorContainer

public DescriptorContainer getDescriptorContainer()
Gets the object for the association that plays role: descriptorContainer.

Specified by:
getDescriptorContainer in interface ConstraintContainer
Returns:
DescriptorContainer

setDescriptorContainer

public void setDescriptorContainer(DescriptorContainer descriptorContainer)
Sets the object for the association that plays role: descriptorContainer.

Specified by:
setDescriptorContainer in interface ConstraintContainer
Parameters:
descriptorContainer -

_put

private void _put(ConstraintIdentifier constraintId,
                  Object content,
                  State state)
           throws IllegalContentException
Throws:
IllegalContentException

toString

public String toString()

clone

public Object clone()
Specified by:
clone in interface ConstraintContainer

getCBR

private static ConstraintBindingRule getCBR(String classname)