|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.assembly.data.MetadataInterrogator
public class MetadataInterrogator
Nested Class Summary | |
---|---|
static class |
MetadataInterrogator.ConstraintIds
|
Field Summary | |
---|---|
private Metadata |
meta
|
Constructor Summary | |
---|---|
MetadataInterrogator(Metadata meta)
|
Method Summary | |
---|---|
private static boolean |
containsConstraint(List<ConstraintMetadata> constraints,
String id)
|
Integer |
getLargestMinLength()
get the largest min occurs value |
static Integer |
getLargestMinLength(Metadata meta)
get the largest min occurs value |
Integer |
getLargestMinOccurs()
get the largest min occurs value |
static Integer |
getLargestMinOccurs(Metadata meta)
get the largest min occurs value |
static Long |
getLargestMinValue(Metadata meta)
|
static Date |
getLargestMinValueDate(Metadata meta,
DateParser parser,
Object dataValue)
|
static Double |
getLargestMinValueDouble(Metadata meta)
|
static String |
getNextState(Metadata meta)
Use to determine if the field is required for the next state. |
Integer |
getSmallestMaxLength()
|
static Integer |
getSmallestMaxLength(Metadata meta)
|
Integer |
getSmallestMaxOccurs()
checks if this field is a repeating field |
static Integer |
getSmallestMaxOccurs(Metadata meta)
Returns the smallest max occurs |
static Long |
getSmallestMaxValue(Metadata meta)
|
static Date |
getSmallestMaxValueDate(Metadata meta,
DateParser parser,
Object dataValue)
|
static Double |
getSmallestMaxValueDouble(Metadata meta)
|
static boolean |
hasConstraint(Metadata meta,
MetadataInterrogator.ConstraintIds id)
Returns true if the metadata contains the specified constraint |
static boolean |
hasConstraint(Metadata meta,
String id)
Returns true if the metadata contains the specified constraint |
boolean |
hasConstraint(String id)
Returns true if the metadata contains the specified constraint |
private static boolean |
hasRepeatingConstraint(Metadata meta)
|
boolean |
isMultilined()
|
static boolean |
isMultilined(Metadata meta)
|
boolean |
isRepeating()
checks if this field is a repeating field |
static boolean |
isRepeating(Metadata meta)
checks if this field is a repeating field |
boolean |
isRequired()
checks if is required |
static boolean |
isRequired(Metadata meta)
checks if is required |
static boolean |
isRequiredForNextState(Metadata meta)
Use to determine if the field is required for the next state. |
private static Date |
tryParseDate(String s,
DateParser parser)
|
private static Double |
tryParseDouble(String s)
|
private static Long |
tryParseLong(String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Metadata meta
Constructor Detail |
---|
public MetadataInterrogator(Metadata meta)
Method Detail |
---|
public boolean hasConstraint(String id)
public boolean isRequired()
public Integer getLargestMinOccurs()
public boolean isRepeating()
public Integer getSmallestMaxOccurs()
public Integer getLargestMinLength()
public Integer getSmallestMaxLength()
public boolean isMultilined()
public static boolean hasConstraint(Metadata meta, MetadataInterrogator.ConstraintIds id)
public static boolean hasConstraint(Metadata meta, String id)
private static boolean containsConstraint(List<ConstraintMetadata> constraints, String id)
public static boolean isRequired(Metadata meta)
public static boolean isRequiredForNextState(Metadata meta)
meta
-
public static String getNextState(Metadata meta)
meta
-
public static Integer getLargestMinOccurs(Metadata meta)
public static boolean isRepeating(Metadata meta)
private static boolean hasRepeatingConstraint(Metadata meta)
public static Integer getSmallestMaxOccurs(Metadata meta)
public static Integer getLargestMinLength(Metadata meta)
public static Integer getSmallestMaxLength(Metadata meta)
public static boolean isMultilined(Metadata meta)
public static Long getLargestMinValue(Metadata meta)
public static Long getSmallestMaxValue(Metadata meta)
public static Double getLargestMinValueDouble(Metadata meta)
public static Double getSmallestMaxValueDouble(Metadata meta)
public static Date getLargestMinValueDate(Metadata meta, DateParser parser, Object dataValue)
public static Date getSmallestMaxValueDate(Metadata meta, DateParser parser, Object dataValue)
private static Long tryParseLong(String s)
private static Double tryParseDouble(String s)
private static Date tryParseDate(String s, DateParser parser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |