|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.EPMDefaultContentDelegate
Implements full renumberIteration, default versions of renumberContents
and checkContents. Common utility functions are included if desired.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
EPMRESOURCE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
JAR
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static String |
ZIP
|
Constructor Summary | |
EPMDefaultContentDelegate()
|
Method Summary | |
void |
checkContents(EPMObject target,
String newNumber)
For a given WTObject check that the numbering change is permissible given the current content on any and all iterations. |
protected void |
checkIterationContents(FormatContentHolder holder,
String displayID,
String oldNumber,
String newNumber)
|
protected String |
convertFamInstContentName(String text)
|
protected String |
getContentdata(WTObject obj)
|
protected String |
getExtension(String text)
|
protected boolean |
isContentAPackage(String cdata)
|
protected boolean |
isEmbedded(String value,
int index,
String contentdata)
|
protected String |
lastExtension(String cdata)
|
protected boolean |
noExtensionTest(String newNumber,
String oldNumber,
Vector contents)
|
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(EPMDefaultContentDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected boolean |
rejectExtension(String newNumber,
String oldNumber,
String contentdata)
|
protected boolean |
rejectNewNumber(String newNumber,
String contentdata)
|
void |
renumberContents(EPMObject target,
String oldNumber,
String newNumber)
Perform the number change for any and all iterations of the given object. |
void |
renumberIteration(FormatContentHolder holder,
String oldNumber,
String newNumber)
For a given FormatContentHolder, do the required modification of content for a number change Supported API: false |
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
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String EPMRESOURCE
private static final String JAR
private static final String ZIP
Constructor Detail |
public EPMDefaultContentDelegate()
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(EPMDefaultContentDelegate 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 void renumberContents(EPMObject target, String oldNumber, String newNumber) throws WTException
renumberContents
in interface EPMContentDelegate
target
- oldNumber
- newNumber
- The proposed new value for the "number" identifier.
WTException
public void checkContents(EPMObject target, String newNumber) throws WTException
checkContents
in interface EPMContentDelegate
target
- newNumber
- The proposed new value for the "number" identifier.
WTException
public void renumberIteration(FormatContentHolder holder, String oldNumber, String newNumber) throws WTException, PropertyVetoException, IOException
renumberIteration
in interface EPMContentDelegate
holder
- oldNumber
- newNumber
-
WTException
PropertyVetoException
IOException
protected void checkIterationContents(FormatContentHolder holder, String displayID, String oldNumber, String newNumber) throws WTException
WTException
protected boolean rejectExtension(String newNumber, String oldNumber, String contentdata)
protected boolean rejectNewNumber(String newNumber, String contentdata)
protected boolean isEmbedded(String value, int index, String contentdata)
protected boolean isContentAPackage(String cdata)
protected String lastExtension(String cdata)
protected String getExtension(String text)
protected String convertFamInstContentName(String text)
protected boolean noExtensionTest(String newNumber, String oldNumber, Vector contents)
protected String getContentdata(WTObject obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |