|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.CopyMultiRules
Used for internal configuring of the multi-object copy of WTPart and
WTDocument.
Supported API: false
Extendable: false
Nested Class Summary | |
private class |
CopyMultiRules.CopyMultiRule
|
private class |
CopyMultiRules.CopyMultiRuleSet
|
Field Summary | |
private static String |
CLASSNAME
|
private static String |
CONTENT
|
private static String |
COPYMULTIRULES
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RELATIONSHIP
|
private static String |
RESOURCE
|
private static String |
RULEDELIM
|
private Hashtable |
rules
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Constructor Summary | |
CopyMultiRules()
No arg constructor. |
|
CopyMultiRules(boolean readProperties)
Create rules. |
Method Summary | |
void |
addContentRule(Class cls,
boolean value)
Add a rule to some copy rules about whether to copy content or not. |
void |
addRelationship(Class cls,
Class value,
String role)
Add a relationship rule to some copy rules. |
boolean |
getContent(Class cls)
Get whether a copy should copy the content for the object. |
boolean |
getRelationship(Class cls,
Class relationship,
String role)
Get whether a relationship should be copied for this object or not. |
Vector |
getRelationshipRoles(Class cls,
Class relationship)
Get the roles that are to be copied for this relationship. |
Vector |
getRelationships(Class cls)
Get a list of the relationships that the copy should copy for the object. |
private CopyMultiRules.CopyMultiRuleSet |
getRules(Class cls)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(CopyMultiRules thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable rules
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String CONTENT
private static final String RELATIONSHIP
private static final String COPYMULTIRULES
private static String RULEDELIM
private static boolean VERBOSE
Constructor Detail |
public CopyMultiRules() throws WTException
WTException
public CopyMultiRules(boolean readProperties) throws WTException
readProperties
-
WTException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(CopyMultiRules thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public boolean getContent(Class cls) throws WTException
cls
- Object that is to be copied.
WTException
public Vector getRelationships(Class cls) throws WTException
cls
- Object that is to be copied.
WTException
public boolean getRelationship(Class cls, Class relationship, String role) throws WTException
cls
- Object that is to be copied.relationship
- Relationship to test whether it should be copied.role
- The role the original wants to copy to the copy.
WTException
public void addContentRule(Class cls, boolean value) throws WTException
cls
- value
-
WTException
public void addRelationship(Class cls, Class value, String role) throws WTException
cls
- Class of the object to be copied.value
- Class of the relationship to be copied.role
- The role the original wants to copy to the copy.
WTException
public Vector getRelationshipRoles(Class cls, Class relationship) throws WTException
cls
- Object that is to be copied.relationship
-
WTException
private CopyMultiRules.CopyMultiRuleSet getRules(Class cls) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |