001: package org.geotools.feature.iso;
002:
003: import java.util.Set;
004:
005: import org.opengis.feature.type.Name;
006: import org.opengis.filter.Filter;
007:
008: /**
009: * Helper methods for dealing with Type restrictions represented by Filters
010: *
011: * @author Gabriel Roldan, Axios Engineering
012: */
013: public class Restrictions {
014:
015: /**
016: * Creates a Filter that enforces the length of value to be equal to the
017: * declared length.
018: * <p>
019: * <code>length</code> is the number of units of length, where units of
020: * length varies depending on the type that is being ?derived? from (#of
021: * chars for a string type, #of octets for a binary type, etc)
022: * </p>
023: * @param attributeName
024: * @param binding
025: * @param length
026: * @return
027: */
028: public static Filter createLength(Name attributeName,
029: Class binding, int length) {
030: throw new UnsupportedOperationException("Not yet implemented");
031: }
032:
033: /**
034: * Creates a Filter that
035: */
036: public static Filter createMinLength(Name attributeName,
037: Class binding, int length) {
038: throw new UnsupportedOperationException("Not yet implemented");
039: }
040:
041: /**
042: * Creates a Filter that
043: */
044: public static Filter createMaxLength(Name attributeName,
045: Class binding, int length) {
046: throw new UnsupportedOperationException("Not yet implemented");
047: }
048:
049: /**
050: * Creates a Filter that
051: */
052: public static Filter createPattern(Name attributeName,
053: Class binding, String regExp) {
054: throw new UnsupportedOperationException("Not yet implemented");
055: }
056:
057: /**
058: * Creates a Filter that
059: */
060: public static Filter createEnumeration(Name attributeName,
061: Class binding, Set values) {
062: throw new UnsupportedOperationException("Not yet implemented");
063: }
064:
065: /**
066: * Creates a Filter that
067: * @parameter constraintName one of <code>"preserve"</code>, <code>"replace"</code>,
068: * <code>"collapse"</code>
069: */
070: public static Filter createWhiteSpace(Name attributeName,
071: Class binding, String constraintName) {
072: throw new UnsupportedOperationException("Not yet implemented");
073: }
074:
075: /**
076: * Creates a Filter that
077: */
078: public static Filter createMaxInclusive(Name attributeName,
079: Class binding, Object maxValue) {
080: throw new UnsupportedOperationException("Not yet implemented");
081: }
082:
083: /**
084: * Creates a Filter that
085: */
086: public static Filter createMaxExclusive(Name attributeName,
087: Class binding, Object maxValue) {
088: throw new UnsupportedOperationException("Not yet implemented");
089: }
090:
091: /**
092: * Creates a Filter that
093: */
094: public static Filter createMinInclusive(Name attributeName,
095: Class binding, Object minValue) {
096: throw new UnsupportedOperationException("Not yet implemented");
097: }
098:
099: /**
100: * Creates a Filter that
101: */
102: public static Filter createMinExclusive(Name attributeName,
103: Class binding, Object minValue) {
104: throw new UnsupportedOperationException("Not yet implemented");
105: }
106:
107: /**
108: * Creates a Filter that
109: */
110: public static Filter createTotalDigits(Name attributeName,
111: Class binding, int totalDigits) {
112: throw new UnsupportedOperationException("Not yet implemented");
113: }
114:
115: /**
116: * Creates a Filter that
117: */
118: public static Filter createFractionDigits(Name attributeName,
119: Class binding, int fractionDigits) {
120: throw new UnsupportedOperationException("Not yet implemented");
121: }
122:
123: }
|