Package com.volantis.shared.metadata.value

Examples of com.volantis.shared.metadata.value.ListValue


    protected Collection verify(final MetaDataValue value, final String path) {
        final Collection errors = super.verify(value, path);
        if (value instanceof ListValue) {
            // check unique member constraint
            if (uniqueMemberConstraint != null) {
                final ListValue list = (ListValue) value;
                final Set values = new HashSet();
                final Iterator iter = list.getContentsAsList().iterator();
                for (int i = 1; iter.hasNext(); i++) {
                    final MetaDataValue child = (MetaDataValue) iter.next();
                    if (!values.add(child)) {
                        errors.add(new VerificationError(
                            VerificationError.TYPE_CONSTRAINT_VIOLATION,
View Full Code Here


    public boolean equals(Object obj) {
        if (!(obj instanceof ListValue)) {
            return false;
        }

        ListValue other = (ListValue) obj;

        return getContentsAsList().equals(other.getContentsAsList());
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.metadata.value.ListValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.