Skip to content

Commit

Permalink
term for taxonomies added & options implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
canbican committed Jun 28, 2015
1 parent 6691249 commit 9cfba09
Show file tree
Hide file tree
Showing 8 changed files with 699 additions and 130 deletions.
79 changes: 79 additions & 0 deletions src/net/bican/wordpress/Option.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
package net.bican.wordpress;

/**
* Option object for a blog.
*
* @author Can Bican <can@bican.net>
*/
public class Option extends XmlRpcMapped implements StringHeader {
String name;
String desc;
String value;
Boolean readonly;

/**
* @return the name
*/
public String getName() {
return this.name;
}

/**
* @param name
* name to set
*/
public void setName(String name) {
this.name = name;
}

/**
* @return the description
*/
public String getDesc() {
return this.desc;
}

/**
* @return the value
*/
public String getValue() {
return this.value;
}

/**
* @return read-only status
*/
public Boolean isReadonly() {
return this.readonly;
}

/**
* @param desc
* description to set
*/
public void setDesc(String desc) {
this.desc = desc;
}

/**
* @param readonly
* read-only status to set
*/
public void setReadonly(Boolean readonly) {
this.readonly = readonly;
}

/**
* @param value
* value to set
*/
public void setValue(String value) {
this.value = value;
}

@Override
public String getStringHeader() {
return ""; //$NON-NLS-1$
}

}
159 changes: 159 additions & 0 deletions src/net/bican/wordpress/Term.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
package net.bican.wordpress;

/**
* Term object for a blog.
*
* @author Can Bican <can@bican.net>
*/
public class Term extends XmlRpcMapped implements StringHeader {
Integer term_id;
String name;
String slug;
String term_group;
String term_taxonomy_id;
String taxonomy;
String description;
Integer parent;
Integer count;

/**
* @return the term id
*/
public Integer getTerm_id() {
return this.term_id;
}

/**
* @param term_id
* term id to set
*/
public void setTerm_id(Integer term_id) {
this.term_id = term_id;
}

/**
* @return the name
*/
public String getName() {
return this.name;
}

/**
* @param name
* name to set
*/
public void setName(String name) {
this.name = name;
}

/**
* @return the slug
*/
public String getSlug() {
return this.slug;
}

/**
* @param slug
* slug to set
*/
public void setSlug(String slug) {
this.slug = slug;
}

/**
* @return the term group
*/
public String getTerm_group() {
return this.term_group;
}

/**
* @param term_group
* term group to set
*/
public void setTerm_group(String term_group) {
this.term_group = term_group;
}

/**
* @return the taxonomy id
*/
public String getTerm_taxonomy_id() {
return this.term_taxonomy_id;
}

/**
* @param term_taxonomy_id
* taxonomy id to set
*/
public void setTerm_taxonomy_id(String term_taxonomy_id) {
this.term_taxonomy_id = term_taxonomy_id;
}

/**
* @return the taxonomy
*/
public String getTaxonomy() {
return this.taxonomy;
}

/**
* @param taxonomy
* taxonomy to set
*/
public void setTaxonomy(String taxonomy) {
this.taxonomy = taxonomy;
}

/**
* @return the description
*/
public String getDescription() {
return this.description;
}

/**
* @param description
* description to set
*/
public void setDescription(String description) {
this.description = description;
}

/**
* @return the parent
*/
public Integer getParent() {
return this.parent;
}

/**
* @param parent
* parent to set
*/
public void setParent(Integer parent) {
this.parent = parent;
}

/**
* @return the count
*/
public Integer getCount() {
return this.count;
}

/**
* @param count
* count to set
*/
public void setCount(Integer count) {
this.count = count;
}

@Override
public String getStringHeader() {
return ""; //$NON-NLS-1$
}

}
105 changes: 105 additions & 0 deletions src/net/bican/wordpress/TermFilter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
package net.bican.wordpress;

/**
* Object for filtering terms during search
*
* @author Can Bican <can@bican.net>
*/
public class TermFilter extends XmlRpcMapped {
Integer number;
Integer offset;
String orderby;
String order;
boolean hide_empty;
String search;

/**
* @return the number
*/
public Integer getNumber() {
return this.number;
}

/**
* @param number
* number to set
*/
public void setNumber(Integer number) {
this.number = number;
}

/**
* @return the offset
*/
public Integer getOffset() {
return this.offset;
}

/**
* @param offset
* offset to set
*/
public void setOffset(Integer offset) {
this.offset = offset;
}

/**
* @return the order-by
*/
public String getOrderby() {
return this.orderby;
}

/**
* @param orderby
* order-by to set
*/
public void setOrderby(String orderby) {
this.orderby = orderby;
}

/**
* @return the order
*/
public String getOrder() {
return this.order;
}

/**
* @param order
* order to set
*/
public void setOrder(String order) {
this.order = order;
}

/**
* @return the hide-empty status
*/
public boolean isHide_empty() {
return this.hide_empty;
}

/**
* @param hide_empty
* hide-empty status to set
*/
public void setHide_empty(boolean hide_empty) {
this.hide_empty = hide_empty;
}

/**
* @return the search terms
*/
public String getSearch() {
return this.search;
}

/**
* @param search
* search terms to set
*/
public void setSearch(String search) {
this.search = search;
}
}
Loading

0 comments on commit 9cfba09

Please sign in to comment.