package com.perforce.common.schema;
public enum Domain {
INT {
public String toJournalFormat(Object o) {
return o.toString();
}
},
KEY {
public String toJournalFormat(Object o) {
StringBuffer buf = new StringBuffer();
buf.append("@");
buf.append(o.toString().replaceAll("@", "@@"));
buf.append("@");
return buf.toString();
}
},
TEXT {
public String toJournalFormat(Object o) {
StringBuffer buf = new StringBuffer();
buf.append("@");
buf.append(o.toString().replaceAll("@", "@@"));
buf.append("@");
return buf.toString();
}
},
OCTET {
public String toJournalFormat(Object o) {
return o.toString();
}
},
OCTETS {
public String toJournalFormat(Object o) {
return o.toString();
}
},
DATE {
public String toJournalFormat(Object o) {
return o.toString();
}
},
INT8 {
public String toJournalFormat(Object o) {
return o.toString();
}
},
INT64 {
public String toJournalFormat(Object o) {
return o.toString();
}
};
Domain() {
}
abstract public String toJournalFormat(Object o);
}
# |
Change |
User |
Description |
Committed |
|
#1
|
12446 |
Paul Allen |
Branching using p4convert-rusty |
|
|
//guest/perforce_software/p4convert/src/com/perforce/common/schema/Domain.java |
#1
|
9807 |
Paul Allen |
Initial import of p4-convert (from change 894340) |
|
|