Examples of FieldKey


Examples of com.sun.data.provider.FieldKey

  boolean readOnly = true;
  if (fieldKey instanceof IndexFieldKey) {
      readOnly = _children.get(((IndexFieldKey) fieldKey).getIndex()).
    isReadOnly(fieldKey);
  } else {
      FieldKey fk = null;
      for (ObjectFieldKeySupport support : _children) {
    fk = support.getFieldKey(fieldKey.getFieldId());
    if (fk != null) {
        // Only call support for the one that claims it has a FieldKey!
        readOnly = support.isReadOnly(fieldKey);
View Full Code Here

Examples of com.sun.data.provider.FieldKey

    public void setValue(FieldKey fieldKey, Object base, Object value) throws DataProviderException {
  if (fieldKey instanceof IndexFieldKey) {
      _children.get(((IndexFieldKey) fieldKey).getIndex()).
    setValue(fieldKey, base, value);
  } else {
      FieldKey fk = null;
      for (ObjectFieldKeySupport support : _children) {
    fk = support.getFieldKey(fieldKey.getFieldId());
    if (fk != null) {
        // Only call support for the one that claims it has a FieldKey!
        support.setValue(fieldKey, base, value);
View Full Code Here

Examples of com.sun.data.provider.FieldKey

     *      <code>null</code>.</p>
     *
     *  @param  fieldId  Canonical identifier of the required field.
     */
    public FieldKey getFieldKey(String fieldId) throws DataProviderException {
  FieldKey key = super.getFieldKey(fieldId);
  if ((key == null) && (_inst != null)) {
      if (_inst.get(fieldId) != null) {
    key = new FieldKey(fieldId);
      }
  }
  return key;
    }
View Full Code Here

Examples of com.sun.data.provider.FieldKey

    /**
     *  <p> Return an array of all supported <code>FieldKey</code>s.</p>
     */
    public FieldKey[] getFieldKeys() throws DataProviderException {
  FieldKey keys[] = super.getFieldKeys();
  if (_inst != null) {
      FieldKey tmp[] = new FieldKey[keys.length + _inst.size()];
      int cnt = 0;
      // Add all other keys
      for (FieldKey key : keys) {
    tmp[cnt++] = key;
      }

      // Add all Map keys
      for (Object key : _inst.keySet()) {
    tmp[cnt++] = new FieldKey(key.toString());
      }
      keys = tmp;
  }
  return keys;
    }
View Full Code Here

Examples of com.thoughtworks.xstream.converters.reflection.FieldKey

        public Map sort(Class type, Map keyedByFieldKey) {
            Map map = new TreeMap(new Comparator() {

                public int compare(Object o1, Object o2) {
                    final FieldKey fieldKey1 = (FieldKey)o1;
                    final FieldKey fieldKey2 = (FieldKey)o2;
                    return fieldKey1.getFieldName().compareTo(fieldKey2.getFieldName());
                }
            });
            map.putAll(keyedByFieldKey);
            return map;
        }
View Full Code Here

Examples of org.jaudiotagger.tag.FieldKey

    try {
      MetadataTagCache tagCache = MetadataTagCache.getInstance();
      Tag songTag = tagCache.getTagFromFile(file);

      for (MetadataTag tag : tagList.getTags()) {
        FieldKey key = tag.getFieldKey();
        // pull the values out, tack them on to the newName

        String value;
        // if the metadat is empty, or the tag key is null, use the
        // tag's default text
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.