I'm using the following method where typeName is the name of the Object Model:
I'm getting the following error because of the IDfType line --> com.documentum.fc.client.DfDocument___PROXY cannot be cast to com.documentum.fc.client.IDfType
public void getTypeAttributes(String typeName) throws DfException {
IDfType idfType = (IDfType) session.getSession().newObject(typeName);
for (int i = 0; i < idfType.getAttrCount(); i++) {
IDfAttr attr = idfType.getAttr(i);
System.out.println("Name " + attr.getName());
System.out.println("Datatype " + attr.getDataType());
System.out.println("Length " + attr.getLength());
System.out.println("IS Repeating Attr " + attr.isRepeating());
}
}