|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.CopyRules
Used for internal configuring of the copy of WTPart and WTDocument.
Supported API: false
Extendable: false
Nested Class Summary | |
private class |
CopyRules.CopyRule
|
private class |
CopyRules.CopyRuleSet
|
Field Summary | |
private static String |
CLASSNAME
|
private static String |
CONTENT
|
private static String |
COPYRULES
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
MADEFROM
|
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 | |
CopyRules()
No arg constructor. |
|
CopyRules(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 |
addMadeFromRule(Class cls,
boolean value)
Add a rule to some copy rules about whether to the MadeFromLink 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 |
getMadeFrom(Class cls)
Get whether a copy should create a MadeFromLink. |
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 CopyRules.CopyRuleSet |
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(CopyRules 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 MADEFROM
private static final String CONTENT
private static final String RELATIONSHIP
private static final String COPYRULES
private static String RULEDELIM
private static boolean VERBOSE
Constructor Detail |
public CopyRules() throws WTException
WTException
public CopyRules(boolean readProperties) throws WTException
readProperties
- Whether to initialize the rules to the rules in the properties file or leave them empty. true = read from properties and false = leave them empty.
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(CopyRules 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 getMadeFrom(Class cls) throws WTException
cls
- Object that is to be copied.
WTException
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 addMadeFromRule(Class cls, boolean value) throws WTException
cls
- value
-
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 CopyRules.CopyRuleSet getRules(Class cls) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |